LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to hide a tab control against a option (0,1,2)?

Hi!

I want to hide seperate tabs against my option. E.g. option 0: hide only page 2,3,7; option 1: hide only page 1,4,9; option 2: hide only page 5,6,8.

Is this possible?

Thanks
Sarah**
~~~~
Regards
Sarah

LV 7.1.1
0 Kudos
Message 1 of 4
(2,932 Views)
Yes you can!

Create a property "Pages".
You will get an array of page references.
Then get the reference you need with "Index array", and with another property node you can set "Page visible"!

Hope this helps!
BJK
Message 2 of 4
(2,932 Views)
Yes it's possible. Basically you use a property node and select Pages property. Next, you need to wire an index array function and expand it to include nine nodes. Then using another property node (PageVis)you can select which tabs you want displayed and/or hidden based upon which option is selected.

See the attached vi for one possible solution. It's not pretty, but it works. It was built using LV 7.1.
Message 3 of 4
(2,932 Views)
Hmmmm... I thought of a option (field) were you have radio buttons 😉
~~~~
Regards
Sarah

LV 7.1.1
0 Kudos
Message 4 of 4
(2,932 Views)