 |
AutoHotkey Community Let's help each other out
|
| View previous topic :: View next topic |
| Author |
Message |
Ista Guest
|
Posted: Sat Mar 08, 2008 12:53 pm Post subject: Gui 1. |
|
|
I don't know if this counts as a bug, but it certainly seems to be a discrepancy:
Gui 1:Add and Gui 1:Show work as normal, but 1Gui<somelabel> doesn't seem to have any effect. Missing out the 1 works if 1 is the default GUI, but what if it isn't? Does that change anything? Or is Gui<somelabel> always the default label for Gui 1?
I also noticed that when a GUI is created as Gui 1, Gui 1:+Label<sometext> doesn't seem to have any effect either - GuiClose still works, but <sometext>GuiClose doesn't ever get called.
Just seems a little strange to me. If Gui 1:Show/Add etc. aren't meant to be used, and are simply the same thing as putting Gui Show/Add etc., why does it work at all? And if it works at all, why not make all of it work, rather than only half of it?
Sorry if this is already a known issue, or if I've made a stupid mistake and all does in fact work as it should - but I did check pretty carefully, and I did do a forum search beforehand.
I. |
|
| Back to top |
|
 |
Rhys
Joined: 17 Apr 2007 Posts: 618 Location: Florida
|
Posted: Sat Mar 08, 2008 4:55 pm Post subject: |
|
|
Hmm, that does seem a little strange, but I've never used GUI 1 - Just GUI and GUI 2-99. This might affect dynamically created GUIs (I think SKAN made one that did a slideshow). _________________
 |
|
| Back to top |
|
 |
Chris Site Admin
Joined: 02 Mar 2004 Posts: 10450
|
Posted: Sun Mar 09, 2008 3:48 pm Post subject: |
|
|
It is documented that the special labels for the first GUI window do not have a numeric prefix. Also, I just tried the following and it seems to work okay: | Code: | Gui Add, Edit
Gui 1:+LabelMyGui
Gui 1:Show
return
MyGuiClose:
MsgBox Test
ExitApp | If you still see anything that isn't documented or doesn't work like it should, please let me know. |
|
| Back to top |
|
 |
|
|
You can post new topics in this forum You can reply to topics in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|