Jump to content
Sign in to follow this  
58fly

A problem of tab

Recommended Posts

58fly
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

post-84939-0-61059200-1394079292_thumb.p

Edited by 58fly

Share this post


Link to post
Share on other sites
reb

Try This

look at post 27

REB


MEASURE TWICE - CUT ONCE

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  

×