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,054 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,043 Views)
The VI here should be enought to get you there
--
Tim Elsey
Certified LabVIEW Architect
Message 3 of 14
(9,015 Views)

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

 

 

0 Kudos
Message 4 of 14
(8,996 Views)

This is a better option.  The VI is attached.

test.png

 

--
Tim Elsey
Certified LabVIEW Architect
Message 5 of 14
(8,985 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 6 of 14
(8,978 Views)