Valuater Posted January 16, 2007 Posted January 16, 2007 (edited) 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 January 16, 2007 by Valuater
Holger Posted January 16, 2007 Posted January 16, 2007 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. Old project:GUI/Tray menu with icons and colors Other old stuff:IconFileScanner, TriState/ThreeState GUI TreeView, GUI ContextMenu created out of a TreeView
xcal Posted January 16, 2007 Posted January 16, 2007 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. How To Ask Questions The Smart Way
Valuater Posted January 16, 2007 Author Posted January 16, 2007 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)
xcal Posted January 17, 2007 Posted January 17, 2007 (edited) I think you might have misunderstood what I was saying. Anyway, I hope I'm wrong. It certainly wouldn't be the first time (or the last). Edited January 17, 2007 by xcal How To Ask Questions The Smart Way
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