 |
AutoHotkey Community Let's help each other out
|
| View previous topic :: View next topic |
| Author |
Message |
Titan
Joined: 11 Aug 2004 Posts: 5068 Location: imaginationland
|
Posted: Thu Feb 24, 2005 8:34 pm Post subject: GuiControl, Hide, (All NOT Static1) ? |
|
|
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 |
|
 |
beardboy
Joined: 02 Mar 2004 Posts: 444 Location: SLC, Utah
|
Posted: Thu Feb 24, 2005 9:08 pm Post subject: |
|
|
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 |
|
 |
Titan
Joined: 11 Aug 2004 Posts: 5068 Location: imaginationland
|
Posted: Thu Feb 24, 2005 9:35 pm Post subject: |
|
|
Thanks  _________________
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 |
|
 |
|
|
You can post new topics in this forum You can reply to topics in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|