Jump to content
Sign in to follow this  
Valuater

Tab Alignment - $TCS_RIGHTJUSTIFY

Recommended Posts

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

$TCS_RIGHTJUSTIFY

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.

Beta 3.2.1.14

#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
Wend
Edited by Valuater

Share this post


Link to post
Share on other sites

The width of each tab is increased, if necessary, ...

Try a change of ie. the first item:

$tab0=GUICtrlCreateTabitem ("My tab 1 with more text")

Then you can see the difference.

Share this post


Link to post
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)

thanks....

My question is ....

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

( and is what was intended by TCS_RIGHTJUSTIFY? )

8)

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  

×
×
  • Create New...