AutoHotkey Homepage AutoHotkey Community
Let's help each other out
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Gui, Hide can not be unhide

 
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Bug Reports
View previous topic :: View next topic  
Author Message
Guest






PostPosted: Wed May 21, 2008 11:01 am    Post subject: Gui, Hide can not be unhide Reply with quote

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

PostPosted: Wed May 21, 2008 12:14 pm    Post subject: Reply with quote

Because "IDE" isn't a valid number, "HIDE" sets the Height of the control to zero. Laughing
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
View user's profile Send private message
Guest






PostPosted: Wed May 21, 2008 1:53 pm    Post subject: Reply with quote

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






PostPosted: Wed May 21, 2008 1:53 pm    Post subject: Reply with quote

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






PostPosted: Wed May 21, 2008 2:39 pm    Post subject: Reply with quote

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

PostPosted: Wed May 21, 2008 10:11 pm    Post subject: Reply with quote

It makes sense for the string of GUI options to use an adjective rather than a verb...
Back to top
View user's profile Send private message
Guest






PostPosted: Thu May 22, 2008 8:38 am    Post subject: Reply with quote

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
Display posts from previous:   
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Bug Reports All times are GMT
Page 1 of 1

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum


Powered by phpBB © 2001, 2005 phpBB Group