From Friday, January 17th 11 PM CDT (January 18th 5 AM UTC) through Saturday, January 18th 11:30 AM CDT (January 18th 5:30 PM UTC), ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Change colour of selected tab in a tab control

Solved!
Go to solution

Hi,

 

I am looking to change the colour of the selected tab in a tab control.

 

For example I have a Tab Control with 3 tabs (P1, P2, P3). What I want is when P2 is selected, it is highlighted say by making the whole tab Red but P1 and P3 are say grey. Hence when say, P1 is then selected,it is Red and P2 + P3 are Grey.

 

Is there a way to do this - I have enabled Multiple colours in my Tab Control

 

 

Help would be appreciated

 

 

Cheers

 

Marsh

0 Kudos
Message 1 of 14
(9,059 Views)

Hi Marsh,

 

you can set colors by either right-click+Properties or by using property nodes. Just read the help for the properties of the tab control!

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 2 of 14
(9,048 Views)
The VI here should be enought to get you there
--
Tim Elsey
Certified LabVIEW Architect
Message 3 of 14
(9,020 Views)

Here is my version allthough the one suggested is much better and efficient.

 

 

0 Kudos
Message 4 of 14
(9,001 Views)

This is a better option.  The VI is attached.

test.png

 

--
Tim Elsey
Certified LabVIEW Architect
Message 5 of 14
(8,990 Views)
Can you save that as a Labview 8.2 file please - I'm not as up to date as you!! Thanks and Sorry!
0 Kudos
Message