aec Posted April 18, 2006 Share Posted April 18, 2006 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 Link to comment Share on other sites More sharing options...
jpm Posted April 18, 2006 Share Posted April 18, 2006 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 . Link to comment Share on other sites More sharing options...
aec Posted April 18, 2006 Author Share Posted April 18, 2006 Thanks Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now