LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Unusual tab background color

Solved!
Go to solution

Hi all,

I have always assumed that a tab control on a panel set with Use Windows Visual Style for controls can have two tab pages background color:

 

  • Some shade of light gray / white when tabs are shown on the upper side of the control
  • The panel background color if tabs are on the other sides of the contrl

I have found, however, one tab control that behaves differently, always showing the white background regardless the position of the tabs: in the picture below compare the tab control on the left, that behaves "normally", with the one on the right that is white. Consider that tab pages background color cannot be set in the UIR editor since the control follows Windows theme (this remains true for both controls).

 

Unusual tab color.png

 

Now, I have no idea how I obtained this Smiley Surprised Smiley Embarassed

Does anybody have an idea on how to do so?

I am attaching the sample panel shown above for you to test.

 

I have found it initially on CVI 2009SP1 on a Win7 machine with CVI2012SP1 runtime, but the control shows the same beaviour on CVI2012SP1 too.



Proud to use LW/CVI from 3.1 on.

My contributions to the Developer Community
________________________________________
If I have helped you, why not giving me a kudos?
0 Kudos
Message 1 of 5
(3,899 Views)
Solution
Accepted by topic author RobertoBozzolo

Roberto,

 

may be I have misunderstood it, also I do have CVI2013 and thus cannot make a direct comparison, but I was able to get identical colors... Did you try to de-select 'Use Windows Visual Style for Controls', change the color, and then re-enable the check box? That worked for me...

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

I might have done it this way too and forgot it! Smiley Embarassed

 

You see, there are so many possibilities at your hand I sometimes miss the obvious solution! Thanks for pointing me to it. Smiley Happy



Proud to use LW/CVI from 3.1 on.

My contributions to the Developer Community
________________________________________
If I have helped you, why not giving me a kudos?
0 Kudos
Message 3 of 5
(3,882 Views)

Oh, I am very glad that the amateur could help the expert Smiley Happy

0 Kudos
Message 4 of 5
(3,880 Views)

Well, it seems to me that "amateur" doesn't suits you well! Smiley Wink



Proud to use LW/CVI from 3.1 on.

My contributions to the Developer Community
________________________________________
If I have helped you, why not giving me a kudos?
0 Kudos
Message 5 of 5
(3,877 Views)