Sign in to follow this  
Followers 0

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)
$Tab = GUICtrlCreateTab(24, 24, 545, 369, BitOR($TCS_FIXEDWIDTH,$TCS_TOOLTIPS))
$Tab1 = GUICtrlCreateTabItem("TAB 1")
$Tab2 = GUICtrlCreateTabItem("TAB 2")
$Tab3 = GUICtrlCreateTabItem("TAB 3")

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



Share this post

Link to post
Share on other sites

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

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