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 

Column format in Tab2

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



Joined: 30 Apr 2008
Posts: 26

PostPosted: Mon May 12, 2008 6:48 pm    Post subject: Column format in Tab2 Reply with quote

I'm writing a small application that has a need for the Tab2 gui contol, but I am unsure how to create a new column for controls on that tab.

If I make a tab like this:

Code:
Gui, Add, Tab2, w680, Current Ship|Item Info|Options


And then change to that tab with:

Code:
Gui, Tab, Ship,


And finally I try to create 2 drop down controls:

Code:
Gui, Add, DropDownList, vTypeChoice, Ships||Consumable|Guns|Bombs|Reactor Plants|Subligh Drives|Armor|Addons|Emitters|Mounts|FTL|Capacity|Alien Technology
Gui, Add, DropDownList, ys vItemChoise, Warbird||Javelin|Spider|Leviathan|Terrier|Weasel|Lancaster|Shark

The first one is placed in the tab and the second one is placed to the right of the entire tab control. Any ideas?
Back to top
View user's profile Send private message
ImprisonedPride



Joined: 30 Apr 2008
Posts: 26

PostPosted: Tue May 13, 2008 12:23 am    Post subject: Reply with quote

Anyone? Sorry for bump.
Back to top
View user's profile Send private message
sinkfaze



Joined: 19 Mar 2008
Posts: 138

PostPosted: Tue May 13, 2008 12:42 am    Post subject: Reply with quote

Have you tried specifying x and y coords within the window for the dropdowns? They should place by default but Tabs have been known to have some bugs.
_________________
Have trouble searching the site for information? Try Quick Search for Autohotkey.
Back to top
View user's profile Send private message
ImprisonedPride



Joined: 30 Apr 2008
Posts: 26

PostPosted: Tue May 13, 2008 1:56 am    Post subject: Reply with quote

Even when I tried like:

Gui, Add, Edit, x100 y50

It placed it to the right of the tab control, even though 100,50 lands inside the existing tab control.
Back to top
View user's profile Send private message
sinkfaze



Joined: 19 Mar 2008
Posts: 138

PostPosted: Tue May 13, 2008 3:33 am    Post subject: Reply with quote

What's your full script (or the full relevant part)?
_________________
Have trouble searching the site for information? Try Quick Search for Autohotkey.
Back to top
View user's profile Send private message
Vinthian



Joined: 11 May 2008
Posts: 15
Location: USA

PostPosted: Tue May 13, 2008 3:39 am    Post subject: Reply with quote

Try using SmartGUI Creator to create your GUI, then implement your script to it. Much easier.
Back to top
View user's profile Send private message Visit poster's website AIM Address MSN Messenger
ImprisonedPride



Joined: 30 Apr 2008
Posts: 26

PostPosted: Tue May 13, 2008 3:57 am    Post subject: Reply with quote

Code:
Gui, -Resize
Gui, +OwnDialogs
Gui, Font, s10, Courier New
Menu, FileMenu, Add, &Load, MenuFileOpen
Menu, FileMenu, Add, &Save, MenuHandler
Menu, FileMenu, Add, &Exit, MenuHandler
Menu, HelpMenu, Add, &Usage, MenuHandler
Menu, HelpMenu, Add, &About, MenuHandler
Menu, MyMenuBar, Add, &File, :FileMenu  ; Attach the two sub-menus that were created above.
Menu, MyMenuBar, Add, &Help, :HelpMenu
Gui, Menu, MyMenuBar
Gui, Add, Tab2, w680 h260, Current Ship|Item Info|Options
Gui, Tab, Current Ship,
Gui, Font, s6, Lucida Console
Gui, Add, Text, +Border w660, %someVar%
Gui, Font
Gui, Tab, Item Info

Gui, Add, DropDownList, vItemChoise, Warbird||Javelin|Spider|Leviathan|Terrier|Weasel|Lancaster|Shark
Gui, Add, DropDownList, vTypeChoice, Ships||Consumable|Guns|Bombs|Reactor Plants|Sublight
Drives|Armor|Addons|Emitters|Mounts|FTL|Capacity|Alien Technology
Gui, Show, w700 h340, Ship Manager
return


And thanks Vinthian, I will give smart gui a try.
Back to top
View user's profile Send private message
sinkfaze



Joined: 19 Mar 2008
Posts: 138

PostPosted: Tue May 13, 2008 4:06 am    Post subject: Reply with quote

It appears to place the dropdowns fine for me, exactly like it's supposed to without them being anchored by x-y coords. I think Vinthian might be right, try SmartGUI to put your GUIs together, see if they come out correctly.
_________________
Have trouble searching the site for information? Try Quick Search for Autohotkey.
Back to top
View user's profile Send private message
ImprisonedPride



Joined: 30 Apr 2008
Posts: 26

PostPosted: Tue May 13, 2008 5:12 am    Post subject: Reply with quote

I've been battling a cold all day and I guess I must have mispoke myself. The above code will place the dropdowns one on top of the other, but I was trying to get them to be next to each other. The ys option places the second dropdown to the right of the tab control, as does anchoring it with x/y coordinates.
Back to top
View user's profile Send private message
sinkfaze



Joined: 19 Mar 2008
Posts: 138

PostPosted: Tue May 13, 2008 6:35 am    Post subject: Reply with quote

Code:
Gui, -Resize
Gui, +OwnDialogs
Gui, Font, s10, Courier New
Menu, FileMenu, Add, &Load, MenuFileOpen
Menu, FileMenu, Add, &Save, MenuHandler
Menu, FileMenu, Add, &Exit, MenuHandler
Menu, HelpMenu, Add, &Usage, MenuHandler
Menu, HelpMenu, Add, &About, MenuHandler
Menu, MyMenuBar, Add, &File, :FileMenu  ; Attach the two sub-menus that were created above.
Menu, MyMenuBar, Add, &Help, :HelpMenu
Gui, Menu, MyMenuBar
Gui, Add, Tab2, w680 h260, Current Ship|Item Info|Options
Gui, Tab, Current Ship,
Gui, Font, s6, Lucida Console
Gui, Add, Text, +Border w660, %someVar%
Gui, Font
Gui, Tab, Item Info

Gui, Add, DropDownList, vItemChoice Section, Warbird||Javelin|Spider|Leviathan|Terrier|Weasel|Lancaster|Shark
Gui, Add, DropDownList, vTypeChoice ys, Ships||Consumable|Guns|Bombs|Reactor Plants|Sublight Drives|Armor|Addons|Emitters|Mounts|FTL|Capacity|Alien Technology
Gui, Show, w700 h340, Ship Manager
return


This works fine on my end, places the controls side by side like you're looking for.
_________________
Have trouble searching the site for information? Try Quick Search for Autohotkey.
Back to top
View user's profile Send private message
ImprisonedPride



Joined: 30 Apr 2008
Posts: 26

PostPosted: Tue May 13, 2008 9:28 pm    Post subject: Reply with quote

I'm ashamed to say all this time I forgot the first control needed "section". Thanks a lot.
Back to top
View user's profile Send private message
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