LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Setting properties of a TAB control individually

Solved!
Go to solution

Hi everybody,
I would like to submit a problem encountered in using the tab control
The LV examples show how to individually set the properties of a TAB control, looking the example it seems very easy but.....
Trying to apply the same code to a TAB control taken from the controls palette, the method does not work

I didn't understand which properties need to be set in order to make the code working

Somebody knows what is the trick used in the example?

 

Thanks in advance for your reply

monica

0 Kudos
Message 1 of 6
(2,527 Views)
Solution
Accepted by topic author scmm

Hi Monica,

 

you also need to check all those checkmarks in the "Advanced" submenu of the tab context menu (aka right-click menu)!

You need to "Allow multiple colors" and you need to disable "Make Page Caption match Label" (for each page!)…

 

It also helps to use the error out wire for each property node!

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 2 of 6
(2,520 Views)

The example relies on having references to the pages of your tab control.

If you right click on your tab control and click "create -> property node -> pages" you will get the property node that returns the array of page references.

 

Once you have that it should work fine.

 

0xDEAD

 

 

0 Kudos
Message 3 of 6
(2,518 Views)

Thank you so much for the quick answer

just a question more.. are this properties normally available in the "Advanced" submenu of the tab context menu, recoverable and settable programmaticcally?

thanks

0 Kudos
Message 4 of 6
(2,506 Views)

Hi Monica,

 

some, but not all.

Why don't you browse those properties in LabVIEW? Just right-click the tab terminal and "Create  -> Property node" to see them all…

(Or read the LabVIEW help, there are huge lists of all properties and methods for all frontpanel objects.)

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 5 of 6
(2,494 Views)

Thank you very much

I found the properties to set programmatically so I attach the VI updated to share it

Bye

0 Kudos
Message 6 of 6
(2,407 Views)