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 

How to create Sub-Tabs inside one Tab (GUI)

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



Joined: 24 Sep 2004
Posts: 813
Location: Germany

PostPosted: Sun Jul 31, 2005 4:31 pm    Post subject: How to create Sub-Tabs inside one Tab (GUI) Reply with quote

Hi,

The Help is talking about selecting Sub-Tabs with "Gui, Tab, Main, Sub" but how do I create a Tab-Control inside one Tab? The following Code only creates two independent Controls in the Main-Window.

Code:
Gui, Add, Tab,, M1|M2|M3
Gui, Tab, 2
Gui, Add, Tab,, S1|S2|S3


Tekl
Back to top
View user's profile Send private message Visit poster's website
toralf



Joined: 31 Jan 2005
Posts: 3841
Location: Bremen, Germany

PostPosted: Sun Jul 31, 2005 5:41 pm    Post subject: Reply with quote

This might be due to the default behavior that one control gets added below the previously added. E.g. like adding a radio button to a GroupBox.

Please try to add relative coordinates so that the second tabs is inside the area of the first tabs.
_________________
Ciao
toralf
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Tekl



Joined: 24 Sep 2004
Posts: 813
Location: Germany

PostPosted: Sun Jul 31, 2005 5:47 pm    Post subject: Reply with quote

Hi Toralf,

that does not work because then the tabs are hidden from the first created tabs and are not owned by Tab 2 of the first Control.

Code:
Gui, Add, Tab,, M1|M2|M3
Gui, Tab, 2,1
Gui, Add, Tab, XS+5 YS+5, S1|S2|S3
Gui, Show


Tekl
Back to top
View user's profile Send private message Visit poster's website
Chris
Site Admin


Joined: 02 Mar 2004
Posts: 10480

PostPosted: Mon Aug 01, 2005 4:37 pm    Post subject: Re: How to create Sub-Tabs inside one Tab (GUI) Reply with quote

Tekl wrote:
how do I create a Tab-Control inside one Tab?
There's no way to do it because at the time, it seemed like it would be too rarely used to justify the added complexity and code size.

However, there is a plan to add a TreeView control, which is a lot like a tab control but has the ability to create a hierarchy (like nested folders on the left side of Explorer).
Back to top
View user's profile Send private message Send e-mail
Tekl



Joined: 24 Sep 2004
Posts: 813
Location: Germany

PostPosted: Tue Aug 02, 2005 7:19 am    Post subject: Reply with quote

Hi Chris,

I actually simulate such a treeview without subtrees via a listbox and hidden tabs (outside the window). It's like in Firefox. Clicking on a name in the listbox changes the tab. Nice to know, that a treeview is planned.

Maybe there are other solutions for my intention. I have a fixed size options-dialog and one category should have more options than what fits in the window. Beside sub-tabs I also thought of a scrolling area, but I haven't found if it is possible to scroll a group of controls.

Tekl
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