LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

colored tabs

If I have a bunch of tabs, can I color one specific tab?  When I try, it will change all the tabs.  Is this because they are all under one main tab control?  Is there an easy way to just change one tab?  Thanks!
0 Kudos
Message 1 of 6
(2,875 Views)

You could do it programmatically by knowing which page (tab) is active and selected the appropriate color for it.  THe same property node would do, you would simply select which color contant goes to it based on the Tab page..

RayR

Message 2 of 6
(2,872 Views)

See the attached VI to get an idea.

One thing you have to do is to check the option "Allow Multiple Colors" in the Advanced short-cut menu for the Tab from the FP.

- Partha ( CLD until Oct 2027 🙂 )
Message 3 of 6
(2,854 Views)
Forgot to saythat you can also do that programatically thro' the prop node. Smiley Happy
- Partha ( CLD until Oct 2027 🙂 )
0 Kudos
Message 4 of 6
(2,853 Views)

Partha,

I like it.. 😉  Is the old value necessary? What I would do is build an array of color constants that holds the color for a given Tab.  That way it is always the same color for that particular Tab.

0 Kudos
Message 5 of 6
(2,832 Views)

I modified your example to illustrate what I meant.

Also, if the operator does not need to click on the Tab to change it (ie software controlled), then you can also hide the Tabs.

Plus I understand why Partha reverted the old value to grey color...  It avoids having the colorful Tabs as I have done.. 😉

RayR

 

Message 6 of 6
(2,829 Views)