Jump to content
Sign in to follow this  
aec

Tabintab Or Multiple Tabctrls Result In Merged Tab

Recommended Posts

aec

I wanted to create a TAB control on a TabPage of another tab control.

No success.

Then I realized that even when I tried to create two separate tab controls on the same GUI the result was a merged TAB Control.

Is this the expected behaviour?

#include <GUIConstants.au3>
$Form1 = GUICreate("Multiple Tabs", 640, 400)

$Tab1 = GUICtrlCreateTab(50, 40, 200, 300)
$TabPage1_1 = GUICtrlCreateTabItem("Tab 1 (1)")
$TabPage1_2 = GUICtrlCreateTabItem("Tab 1 (2)")
GUICtrlCreateTabItem("")


$Tab2 = GUICtrlCreateTab(300, 40, 200, 300)
$TabPage2_1 = GUICtrlCreateTabItem("Tab 2 (1)")
$TabPage2_2 = GUICtrlCreateTabItem("Tab 2 (2)")
GUICtrlCreateTabItem("")

GUISetState(@SW_SHOW)
While 1
    $msg = GuiGetMsg()
    Select
    Case $msg = $GUI_EVENT_CLOSE
        ExitLoop
    Case Else
    ;;;;;;;
    EndSelect
WEnd

Regards

Share this post


Link to post
Share on other sites
jpm

as stated in the doc you can have only one tab by window. You need to create child window to have several tab.

If you search in the forum you will find some example how to do it .

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.