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 

GuiControl, Hide, (All NOT Static1) ?

 
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Ask for Help
View previous topic :: View next topic  
Author Message
Titan



Joined: 11 Aug 2004
Posts: 5068
Location: imaginationland

PostPosted: Thu Feb 24, 2005 8:34 pm    Post subject: GuiControl, Hide, (All NOT Static1) ? Reply with quote

Is it possible to hide all controls except specified ones (e.g. see title)?
_________________

RegExReplace("irc.freenode.net/ahk", "^(?=(.(?=[\0-r\[]*((?<=\.).))))(?:[c-\x73]{2,8}(\S))+((2)|\b[^\2-]){2}\D++$", "$u3$1$3$4$2")
Back to top
View user's profile Send private message Visit poster's website
beardboy



Joined: 02 Mar 2004
Posts: 444
Location: SLC, Utah

PostPosted: Thu Feb 24, 2005 9:08 pm    Post subject: Reply with quote

Here is a way to do it.

Code:
gui, add, text,, Text1
gui, add, text,, Text2
gui, add, edit,, Edit1
gui, add, edit,, Edit2
gui, add, listbox,, ListBox1
gui, add, button, w50 vHide, Hide
gui, show,, TestGUI
return

GUIClose:
ExitApp

ButtonHide:
WinGet, controllist, controllist, TestGUI ; Get list of controls
GuiControlGet, check,, Hide, Text ; Check to see if
if check = Hide
{
  Loop, Parse, controllist, `n
  {
    IfInString, a_loopfield, button
      Continue
    IfInString, a_loopfield, static
      Continue
    GuiControl, Hide, %a_loopfield%
  }
  GuiControl,, Hide, Show
}
else
{
  Loop, Parse, controllist, `n
  {
    IfInString, a_loopfield, button
      Continue
    IfInString, a_loopfield, static
      Continue
    GuiControl, Show, %a_loopfield%
  }
  GuiControl,, Hide, Hide
}
return

thanks,
beardboy
Back to top
View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger MSN Messenger
Titan



Joined: 11 Aug 2004
Posts: 5068
Location: imaginationland

PostPosted: Thu Feb 24, 2005 9:35 pm    Post subject: Reply with quote

Thanks Very Happy
_________________

RegExReplace("irc.freenode.net/ahk", "^(?=(.(?=[\0-r\[]*((?<=\.).))))(?:[c-\x73]{2,8}(\S))+((2)|\b[^\2-]){2}\D++$", "$u3$1$3$4$2")
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Ask for Help 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