解决了问题又不附上解决方法,不大厚道。
还是附个源码上去吧,方便新手。
#include <GUIConstantsEx.au3>
#include <TabConstants.au3>
Opt('MustDeclareVars', 1)
Example()
Func Example()
Local $tab, $tab0, $tab1, $tab2, $tab3, $tab4, $tab5, $tab6, $tab7, $tab8
GUICreate("My GUI Tab") ; will create a dialog box that when displayed is centered
GUISetBkColor(0x00E0FFFF)
GUISetFont(9, 300)
$tab = GUICtrlCreateTab(10, 10, 300, 200,$TCS_MULTILINE)
$tab0 = GUICtrlCreateTabItem("tab0")
$tab1 = GUICtrlCreateTabItem("tab1")
$tab2 = GUICtrlCreateTabItem("tab2")
$tab3 = GUICtrlCreateTabItem("tab3")
$tab4 = GUICtrlCreateTabItem("tab4")
$tab5 = GUICtrlCreateTabItem("tab5")
$tab6 = GUICtrlCreateTabItem("tab6")
$tab7 = GUICtrlCreateTabItem("tab7")
$tab8 = GUICtrlCreateTabItem("tab8")
GUICtrlSetState(-1, $GUI_SHOW) ; will be display first
GUISetState()
Do
Until GUIGetMsg()=-3
EndFunc ;==>Example
|