Jump to content



Recommended Posts

this should work, according to how i am understanding the help file


The width of each tab is increased, if necessary, so that each row of tabs fills the entire width of the tab control. This window style is ignored unless the TCS_MULTILINE style is also specified.


#include <GUIConstants.au3>

GUICreate("My GUI Tab")  ; will create a dialog box that when displayed is centered

$tab=GUICtrlCreateTab (10,10, 250, 100, BitOR($TCS_MULTILINE,$TCS_RIGHTJUSTIFY)) ; not working

$tab0=GUICtrlCreateTabitem ("My tab 1")

$tab1=GUICtrlCreateTabitem ("My tab 2")

$tab2=GUICtrlCreateTabitem ("My tab 3")

GUICtrlCreateTabitem ("")    ; end tabitem definition

GUISetState ()

; Run the GUI until the dialog is closed
While 1
    $msg = GUIGetMsg()
    If $msg = $GUI_EVENT_CLOSE Then ExitLoop
Edited by Valuater


Link to comment
Share on other sites

TCS_RIGHTJUSTIFY doesn't seem to kick in until there are enough tabitems (or two tabs are wide enough) to create a second line. But then it does it anyway, even without TCS_RIGHTJUSTIFY.

True if you use

$tab=GUICtrlCreateTab (10,10, 250, 100, $TCS_MULTILINE)


My question is ....

How do i get this to work on ONE LINE??

( and is what was intended by TCS_RIGHTJUSTIFY? )



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

  • Recently Browsing   0 members

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