#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>
$Form1 = GUICreate("Dialog", 567, 427, 302, 218)
$Button1 = GUICtrlCreateButton("Button1", 8, 24, 75, 25)
$Button2 = GUICtrlCreateButton("Button2", 8, 64, 75, 25)
$Exit_Button = GUICtrlCreateButton("Exit", 8, 104, 75, 25)
GUISetState(@SW_SHOW,$Form1)
$ChildGUI_1=GUICreate("", 400, 400, 400, 250,$WS_POPUP,'',$Form1)
$PageControl1 = GUICtrlCreateTab(10, 16, 460, 392)
$TabSheet1 = GUICtrlCreateTabItem("System")
$Group1 = GUICtrlCreateGroup("Local", 120, 48, 345, 105)
$Checkbox1 = GUICtrlCreateCheckbox("CheckBox1", 130, 72, 329, 17)
$TabSheet2 = GUICtrlCreateTabItem("Explorer")
$Checkbox2 = GUICtrlCreateCheckbox("CheckBox2", 130, 96, 273, 17)
$TabSheet3 = GUICtrlCreateTabItem("Panel")
$Checkbox3 = GUICtrlCreateCheckbox("CheckBox3", 130, 120, 193, 17)
GUISetState(@SW_HIDE,$ChildGUI_1)
$ChildGUI_2=GUICreate("", 400, 400, 400, 250,$WS_POPUP,'',$Form1)
$PageControl2 = GUICtrlCreateTab(10, 16, 460, 392)
$TabSheet1_2 = GUICtrlCreateTabItem("System-2")
$Group1_2 = GUICtrlCreateGroup("Local-2", 120, 48, 345, 105)
$Checkbox1_2 = GUICtrlCreateCheckbox("CheckBox1-2", 140, 72, 329, 17)
$TabSheet2_2 = GUICtrlCreateTabItem("Explorer-2")
$Checkbox2_2 = GUICtrlCreateCheckbox("CheckBox2-2", 140, 96, 273, 17)
$TabSheet3_2 = GUICtrlCreateTabItem("Panel-2")
$Checkbox3_2 = GUICtrlCreateCheckbox("CheckBox3-2", 140, 120, 193, 17)
GUISetState(@SW_SHOW,$ChildGUI_2)
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE,$Exit_Button
ExitLoop
Case $Button1
GUISetState(@SW_HIDE,$ChildGUI_2)
GUISetState(@SW_SHOW,$ChildGUI_1)
Case $Button2
GUISetState(@SW_HIDE,$ChildGUI_1)
GUISetState(@SW_SHOW,$ChildGUI_2)
EndSwitch
WEnd