| View previous topic :: View next topic |
| Author |
Message |
biatche
Joined: 23 Feb 2008 Posts: 59
|
Posted: Sat Apr 26, 2008 9:19 am Post subject: [Help] GuiClose / GuiEscape specific GUI's |
|
|
| I'm aware of GuiClose: and 2GuiClose:, but how can I specifically GuiClose something? |
|
| Back to top |
|
 |
biatche
Joined: 23 Feb 2008 Posts: 59
|
Posted: Sat Apr 26, 2008 9:32 am Post subject: |
|
|
after a bit of searching, it seems related to
Gui +Label???????
can anyone give me an example? I can't get it right
Say I have a tray menu, that has 3 items, these 3 items open different gui's. These 3 gui's, I wish to have different tasks for GuiClose and GuiEscape |
|
| Back to top |
|
 |
SKAN
Joined: 26 Dec 2005 Posts: 5816
|
Posted: Sat Apr 26, 2008 9:39 am Post subject: |
|
|
| biatche wrote: | | These 3 gui's, I wish to have different tasks for GuiClose and GuiEscape |
like follows:
| Code: | GuiEscape:
GuiClose:
; do something
Return
2GuiEscape:
2GuiClose:
; do something
Return
3GuiEscape:
3GuiClose:
; do something
Return |
 |
|
| Back to top |
|
 |
biatche
Joined: 23 Feb 2008 Posts: 59
|
Posted: Sat Apr 26, 2008 9:41 am Post subject: |
|
|
| then i will have no control over the guis as i destroy them on close.. i need to specifically get the right ones |
|
| Back to top |
|
 |
SKAN
Joined: 26 Dec 2005 Posts: 5816
|
Posted: Sat Apr 26, 2008 9:48 am Post subject: |
|
|
| biatche wrote: | | then i will have no control over the guis as i destroy them on close.. |
Then, do not destroy them!
Precisely, clicking the close button hides the GUI, and does not destroy them unless you specifically use Gui, n:Destroy in the GuiClose: routine.
 |
|
| Back to top |
|
 |
biatche
Joined: 23 Feb 2008 Posts: 59
|
Posted: Sat Apr 26, 2008 10:11 am Post subject: |
|
|
| why not destroy them? |
|
| Back to top |
|
 |
SKAN
Joined: 26 Dec 2005 Posts: 5816
|
Posted: Sat Apr 26, 2008 10:13 am Post subject: |
|
|
| biatche wrote: | | why not destroy them? |
er.. I am confused biatche.. Can you explain more on what you are upto ? |
|
| Back to top |
|
 |
engunneer
Joined: 30 Aug 2005 Posts: 6772 Location: Pacific Northwest, US
|
Posted: Sat Apr 26, 2008 6:02 pm Post subject: |
|
|
I think he is asking how to programatically close guis, instead of him clicking on them. _________________
Unless otherwise noted, all code is untested.
Common Answers: 1.(Loops, Viruses, etc.) 2. Search 3.RTFM |
|
| Back to top |
|
 |
|