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, Show tab?

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



Joined: 15 Jul 2006
Posts: 253

PostPosted: Fri Jan 02, 2009 8:46 am    Post subject: Gui, Show tab? Reply with quote

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
View user's profile Send private message
Neight



Joined: 31 Dec 2008
Posts: 23

PostPosted: Fri Jan 02, 2009 8:49 am    Post subject: Reply with quote

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
View user's profile Send private message
Hansol



Joined: 27 Dec 2005
Posts: 36

PostPosted: Fri Jan 02, 2009 8:59 am    Post subject: Reply with quote

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
View user's profile Send private message MSN Messenger
wakewatcher



Joined: 15 Jul 2006
Posts: 253

PostPosted: Fri Jan 02, 2009 6:42 pm    Post subject: Reply with quote

Thanks.
Back to top
View user's profile Send private message
tank



Joined: 21 Dec 2007
Posts: 3700
Location: Louisville KY USA

PostPosted: Fri Jan 02, 2009 9:18 pm    Post subject: Reply with quote

Laod wrote:
Ask stupid questions, get stupid answers.
Search before posting!
best sig ever Very Happy
_________________

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
View user's profile Send private message
Neight



Joined: 31 Dec 2008
Posts: 23

PostPosted: Fri Jan 02, 2009 11:08 pm    Post subject: Reply with quote

tank wrote:
Laod wrote:
Ask stupid questions, get stupid answers.
Search before posting!
best sig ever Very Happy


Wink
_________________
Ask stupid questions, get stupid answers.
Search before posting!
Back to top
View user's profile Send private message
Display posts from previous:   
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