 |
AutoHotkey Community Let's help each other out
|
| View previous topic :: View next topic |
| Author |
Message |
Tekl
Joined: 24 Sep 2004 Posts: 813 Location: Germany
|
Posted: Sun Jul 31, 2005 4:31 pm Post subject: How to create Sub-Tabs inside one Tab (GUI) |
|
|
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 |
|
 |
toralf
Joined: 31 Jan 2005 Posts: 3841 Location: Bremen, Germany
|
Posted: Sun Jul 31, 2005 5:41 pm Post subject: |
|
|
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 |
|
 |
Tekl
Joined: 24 Sep 2004 Posts: 813 Location: Germany
|
Posted: Sun Jul 31, 2005 5:47 pm Post subject: |
|
|
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 |
|
 |
Chris Site Admin
Joined: 02 Mar 2004 Posts: 10480
|
Posted: Mon Aug 01, 2005 4:37 pm Post subject: Re: How to create Sub-Tabs inside one Tab (GUI) |
|
|
| 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 |
|
 |
Tekl
Joined: 24 Sep 2004 Posts: 813 Location: Germany
|
Posted: Tue Aug 02, 2005 7:19 am Post subject: |
|
|
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 |
|
 |
|
|
You can post new topics in this forum You can reply to topics in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|