Jump to content

A problem of tab


58fly
 Share

Recommended Posts

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
Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...