 |
AutoHotkey Community Let's help each other out
|
| View previous topic :: View next topic |
| Author |
Message |
Guest
|
Posted: Wed May 21, 2008 11:01 am Post subject: Gui, Hide can not be unhide |
|
|
| Code: | Gui,add,edit,x0 y0 w200 h200 vtest
gui, show, w200 h200
sleep, 1000
guicontrol, hide, test
sleep, 1000
guicontrol, show, test | it works
and
it doesn't works
| Code: | Gui,add,edit,x0 y0 w200 h200 HIDE vtest
gui, show, w200 h200
sleep, 1000
guicontrol, show, test |
|
|
| Back to top |
|
 |
Lexikos
Joined: 17 Oct 2006 Posts: 2558 Location: Australia, Qld
|
Posted: Wed May 21, 2008 12:14 pm Post subject: |
|
|
Because "IDE" isn't a valid number, "HIDE" sets the Height of the control to zero.
| the manual wrote: | | Hidden: The control is initially invisible. Use "GuiControl Show" to show it later. The word Hidden may optionally be followed immediately by a 0 or 1 to indicate the starting state (0 for visible and 1 for hidden). In other words, Hidden and Hidden%VarContainingOne% are the same. | (HIDE != Hidden) |
|
| Back to top |
|
 |
Guest
|
Posted: Wed May 21, 2008 1:53 pm Post subject: |
|
|
| ok it's not bug then. i don't know why it's HIDDEN only for gui command. while HIDE is used at everywhere else. if HIDDEN could be recognized as option, HIDE also could be recognized, isn't? |
|
| Back to top |
|
 |
Guest
|
Posted: Wed May 21, 2008 1:53 pm Post subject: |
|
|
| Lexikos wrote: | | (HIDE != Hidden) |
...this is a different guest, but I vote for hide being a synonym for hidden (technically I would just rename all "hidden" options to "hide" but then there's backwards compat issues)...hidden is too long...I like hide... |
|
| Back to top |
|
 |
Guest
|
Posted: Wed May 21, 2008 2:39 pm Post subject: |
|
|
| this is different guest of different guest. backward compatibility issue can be easily solved. add HIDE and keep HIDDEN rather than replacing it |
|
| Back to top |
|
 |
Lexikos
Joined: 17 Oct 2006 Posts: 2558 Location: Australia, Qld
|
Posted: Wed May 21, 2008 10:11 pm Post subject: |
|
|
| It makes sense for the string of GUI options to use an adjective rather than a verb... |
|
| Back to top |
|
 |
Guest
|
Posted: Thu May 22, 2008 8:38 am Post subject: |
|
|
| Anonymous wrote: | | backward compatibility issue can be easily solved. add HIDE and keep HIDDEN rather than replacing it |
...that's what synonym means...
| Anonymous wrote: | | ...I vote for hide being a synonym for hidden... |
...but lemme add one thing...rename all the docs to say "hide" & just let people forget it was once "hidden", even if it's left working for back compat...
| Lexikos wrote: | | It makes sense for the string of GUI options to use an adjective rather than a verb... |
...omg lol, I failed "the parts of speech"...but, put simply, hide is shorter...& easier to type/think of...I don't care which is an adj or verb... |
|
| 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
|