58fly Posted March 6, 2014 Share Posted March 6, 2014 (edited) I am a novice, consult a vertical TAB problems How to make the following code label may be centered, and lock the width of TAB, hope to get help! #include <GUIConstantsEx.au3> #include <GuiTab.au3> Global $WinWidth = 800, $WinHeight = 600 ,$TabWidth = 50,$TabHeight = 100 $hGUI = GUICreate("VERTICAL TAB", $WinWidth, $WinHeight) $tab = GUICtrlCreateTab(0, 0, $WinWidth,$WinHeight,$TCS_MULTILINE+$TCS_FIXEDWIDTH) ;GUICtrlSetStyle(-1, $TCS_VERTICAL) _GUICtrlTab_SetItemSize($tab, $TabWidth, $TabHeight) GUICtrlSetStyle($tab,$TCS_FLATBUTTONS+$TCS_VERTICAL) ;============================================================================= GUICtrlCreateTabItem("Here more than one character problem") ;=============================================================================== GUICtrlCreateTabItem("Test1") ;=============================================================================== GUICtrlCreateTabItem("Test2") ;=============================================================================== GUICtrlCreateTabItem("Test more...") ;=============================================================================== GUICtrlCreateTabItem("About") GUICtrlCreateTabItem("") GUISetState() While 1 $GUIMsg = GUIGetMsg() Switch $GUIMsg Case $GUI_EVENT_CLOSE Exit ; _myexitfunc() EndSwitch WEnd Edited March 6, 2014 by 58fly Link to comment Share on other sites More sharing options...
reb Posted March 6, 2014 Share Posted March 6, 2014 Try This look at post 27 REB MEASURE TWICE - CUT ONCE 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