LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Tab page label text color

I have a program that I need to change the color of the text on the tab depending on a certain case.  I can change the color of the tab itself, the color of the label and caption, and even what text is displayed on the tabs.  However, I can't seem to find a way to change the color of the text on the tab.

For example, if I had a tab with the labels "Page 1" and "Page 2."  For case A, I need "Page 1" and "Page 2" black, and for case B, I need "Page 1" and "Page 2" white.

I've tried making a property node and entering values for BGColor and FGColor, but it doesn't change the text color.  I also tried making a reference to each page and connecting that to a property node.  I then entered values for BGColor and FGColor for those pages, with IndependentLabel on and off.  Those cases didn't work either.  The only way I can change the color is by manually changing the color before I run the VI.
0 Kudos
Message 1 of 5
(3,518 Views)
Have you tried FG Color/BG Color, available under Properties/Color in the Properties Node?
0 Kudos
Message 2 of 5
(3,501 Views)
No, I'm afraid my suggestion doesn't work for text colour. Sorry about that.
0 Kudos
Message 3 of 5
(3,497 Views)

You cannot change the text color of the Tab Page label, even in 8.5.

Maybe you can file for a feature request in NI or LAVA.

- Partha ( CLD until Oct 2027 🙂 )
0 Kudos
Message 4 of 5
(3,488 Views)
I see.  Thanks parthabe.  I still doesn't quite make sense why they let you change the color for everything in the tab except the color of the text.  Go figure...
0 Kudos
Message 5 of 5
(3,465 Views)