Sign in to follow this  
Followers 0
Monty

Background colour for GUI/Tabs

2 posts in this topic

Hi all,

I am using GUI and Tabs...all working.

I have used "GUISetBkColor" to change background colour...this works.

** EXCEPT **

The colour of the area next to last tab remains unchanged. Is there anyway to colour this part too?

I can use "GUICtrlCreateLabel" to cover this area (like a bandaid) but there has to be a better way as the last tab slightly clips due to this label.

Any help will be greatly appreciated.

Here is the example:

#include <TabConstants.au3>
#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>

$Form = GUICreate("GUI", 594, 417, 482, 398)
GUISetBkColor(0xAAEEFA)
$Tab = GUICtrlCreateTab(24, 24, 545, 369, BitOR($TCS_FIXEDWIDTH,$TCS_TOOLTIPS))
GUICtrlSetResizing(-1, $GUI_DOCKWIDTH+$GUI_DOCKHEIGHT)
$Tab1 = GUICtrlCreateTabItem("TAB 1")
$Tab2 = GUICtrlCreateTabItem("TAB 2")
$Tab3 = GUICtrlCreateTabItem("TAB 3")
GUICtrlCreateTabItem("")
GUISetState(@SW_SHOW)

While 1
    $nMsg = GUIGetMsg()
    Switch $nMsg
        Case $GUI_EVENT_CLOSE
            Exit

    EndSwitch
WEnd

post-38119-1250914498174_thumb.jpg

Share this post


Link to post
Share on other sites



Check out the second method ("Another way is") martin posted here:

http://www.autoitscript.com/forum/index.php?showtopic=70912&st=0&p=519278&#entry519278

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  
Followers 0