| View previous topic :: View next topic |
| Author |
Message |
wakewatcher
Joined: 15 Jul 2006 Posts: 253
|
Posted: Fri Jan 02, 2009 8:46 am Post subject: Gui, Show tab? |
|
|
| I have a gui with several tabs. The last tab is one used for setting up and creating an .ini file. Is there a way that I can set the "show" to open the gui to a particular tab rather than the first tab? Such that in this case I can check for the existence of the .ini file. If its not there then open the gui with the setup tab instead of the first tab. -thx- |
|
| Back to top |
|
 |
Neight
Joined: 31 Dec 2008 Posts: 23
|
Posted: Fri Jan 02, 2009 8:49 am Post subject: |
|
|
| Code: | Gui, Add, Tab, w300 h500, Tab 1|Tab 2|Tab 3||
Gui, Show |
To make a default tab, simply add two |'s behind it's name. _________________ Ask stupid questions, get stupid answers.
Search before posting! |
|
| Back to top |
|
 |
Hansol
Joined: 27 Dec 2005 Posts: 36
|
Posted: Fri Jan 02, 2009 8:59 am Post subject: |
|
|
You can also use a variable like this:
| Code: | varDefault := 3
Gui, Add, Tab, w300 h500 Choose%varDefault%, Tab 1|Tab 2|Tab 3|
Gui, Show |
|
|
| Back to top |
|
 |
wakewatcher
Joined: 15 Jul 2006 Posts: 253
|
Posted: Fri Jan 02, 2009 6:42 pm Post subject: |
|
|
| Thanks. |
|
| Back to top |
|
 |
tank
Joined: 21 Dec 2007 Posts: 3700 Location: Louisville KY USA
|
Posted: Fri Jan 02, 2009 9:18 pm Post subject: |
|
|
| Laod wrote: | Ask stupid questions, get stupid answers.
Search before posting! | best sig ever  _________________
We are troubled on every side‚ yet not distressed; we are perplexed‚
but not in despair; Persecuted‚ but not forsaken; cast down‚ but not destroyed; |
|
| Back to top |
|
 |
Neight
Joined: 31 Dec 2008 Posts: 23
|
Posted: Fri Jan 02, 2009 11:08 pm Post subject: |
|
|
| tank wrote: | | Laod wrote: | Ask stupid questions, get stupid answers.
Search before posting! | best sig ever  |
 _________________ Ask stupid questions, get stupid answers.
Search before posting! |
|
| Back to top |
|
 |
|