LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Selected tab highlight hint color

Solved!
Go to solution

Hi,

 

Is it possible to change the highlight hint color on a tab control?  What I'm refering to is the orangeish color that shows up at the top of the active tab on a tab control, as seen in the screenshot.  I can't find an attribute for this, nor can I seem to be able to paint it in the UI editor.  Oddly I'm only seeing this in Windows 7 - it does not seem to show on Windows XP.

 

tabhint.png

 

Thanks.

0 Kudos
Message 1 of 5
(3,293 Views)

See here, I hope it helps a bit...

0 Kudos
Message 2 of 5
(3,291 Views)

Thanks for the information.  I didn't see that post in my search.  It would seem that the answer to my question is the color can't be changed without messing around with the current theme in Windows.  I guess it is what it is then.

0 Kudos
Message 3 of 5
(3,283 Views)
Solution
Accepted by topic author tstanley

The pic you posted is the way the tab control draws when the panel attribute ATTR_CONFORM_TO_SYSTEM_THEME is turned off.

 

On Windows 7, when ATTR_CONFORM_TO_SYSTEM_THEME is turned on, the tab control draws like this:

 

TabControlWin7Theme.png

 

To answer your question about if you can change the orangish color, the answer is no.

 

 

 

 

 

Message 4 of 5
(3,258 Views)

Thanks for the help.  I ended up having to turn off the ATTR_CONFORM_TO_SYSTEM_THEME because the users didn't like how the tabs backgrounds were drawn with a lighter color (admittedly I think it's kind of ugly too) despite ATTR_BACKCOLOR showing the "correct" color.  Sometimes I guess you just can't win. Smiley Sad

0 Kudos
Message 5 of 5
(3,242 Views)