Showing results for 
Search instead for 
Did you mean: 

different labview tab colors

I have a tab control and want to make each tab a unique color. When I try to set the color of a tab, it sets all of the tabs. Is there a way to individually set the color of each tab?
0 Kudos
Message 1 of 16
Right Click >> Advanced >> Allow Multiple Colors
Tim Elsey
Certified LabVIEW Architect
Message 2 of 16

Tim, is there any way to programmatically set the color of individual tabs? 


For example, I have an app where I put status information in a tab.  When an error occurs, I'd like this tab to be red.  Else, some less-alerting color.  


How's that done?


Many thanks in advance,


--Scott Jordan

0 Kudos
Message 3 of 16

there are properties under the property nodes to do this right click the tab control go to crate go to property nodes and than go to color


hope this helps

Harold Timmis
*Kudos always welcome:)
Message 4 of 16

Thanks, Harold, but Properties | Colors does not seem to offer a tab-specific setting, so one can set the color of a specific tab.  I'm not seeing any effect from it in any case.  There are two sub-properties: foreground color and background color.  If "foreground" means the currently-selected tab, it has no effect.  Similarly, setting the "background" color property for the tab control has no effect.  I'm using LV 8.2 on Windows at present.  (I have no trouble setting individual tab colors using the paintbrush tool.)



Thanks, though, I appreciate the tip.   I'm hoping someone might have a clue as to what I'm doing wrong, or for some other way of getting programmatic tab-color-setting to work. 





0 Kudos
Message 5 of 16
(I hope it's clear that when I said "Properties | Color" I was referring to the Color property of the property node for the tab control.)
0 Kudos
Message 6 of 16
You are right you cant use tab controls "color" property when "multiple tab colors" is set to true. it works only when  "multiple tab colors" is set to False. may be you need to do it as shown in example attached.

Tushar Jambhekar

Jambhekar Automation Solutions
LabVIEW Consultancy, LabVIEW Training
Rent a LabVIEW Developer, My Blog

Message 7 of 16
Properties>Pages returns an array. You can index the array for a specific page referance and select the F/G color for the page.
Message 8 of 16
Thank you to everybody who responded, and especially to Tim for the nifty example!
0 Kudos
Message 10 of 16