LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Help Recreating a Tab Control example feature

Solved!
Go to solution
Highlighted

Hello gents, browsing the forum i found this old post that does exactly what i want to do with my tabs 

https://forums.ni.com/t5/Example-Programs/Disable-Tabs-in-Tab-Control/ta-p/3506156?profile.language=...

 

I'm trying to recreate it in my VI but i can't do it, i can create the part with create > property node > pages so i get the reference number of the pages but i can't quite understand how to disable and gray the other pages while i'm not using them.

Can someone please explain it to me and possibly guide me through some steps?

 

Thank you in advance 🙂

0 Kudos
Message 1 of 6
(146 Views)

Hi Bonifacio,

 

as is shown in the linked article each page has its own reference and you can use that reference to set its visibility/disabled state…

Best regards,
GerdW
CLAD expired, using LV2011SP1 + LV2017 (+LV2019 sometimes) on Win7+cRIO
Kudos are welcome Smiley Wink

0 Kudos
Message 2 of 6
(136 Views)

1111.PNG

I'm not clear with this part: where do i find it? Should i create an enum with those 3 different states for the tabs? How can i do that?

0 Kudos
Message 3 of 6
(132 Views)

Post what you have...

 

If you get a refence to the pages, you probably need to iterate over them in a for loop, or get a single reference form the array with an index array or delete from array,..

0 Kudos
Message 4 of 6
(129 Views)
Solution
Accepted by topic author BonifacioLupo

@BonifacioLupo wrote:

1111.PNG

I'm not clear with this part: where do i find it? Should i create an enum with those 3 different states for the tabs? How can i do that?


Create a property node, wire it to the reference.

 

Select a property by clicking (or right clicking) the property node. Pick the Enable property.

 

Set it to write (default might be read).

 

Right click the input, and create a constant.

Message 5 of 6
(126 Views)

Ok thanks problem solved 🙂 i was creating a property node from Tab Control of the Front Panel (where i could choose a property node for disable) while i had to create an "empty" property node from the block diagram by clicking on my page reference. 

Thanks and kudos to you.

0 Kudos
Message 6 of 6
(118 Views)