LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Which property do I use to label the pages in a tab?

Hi all,

 

I am looking for the property that I can use to change the labels for the pages in a tab.  Anyone?

 

Thank you,

 

Lynniz

0 Kudos
Message 1 of 4
(4,914 Views)

Lynniz,

 

It is a two-step process.  First use the Pages property of the Tab control. That produces an array of references to the pages.  Index out the one you want or use a for loop to check them all.  Connect the Page reference to a Page Label property node.

 

Lynn

 

Tab Page labels.png

Message 2 of 4
(4,910 Views)

Johnsold,

 

Thanks for the reply.  I did try to use that "PageLabel" property node to change the page labels while the VI is running, but it returned the following error:

 

Possible reason(s):

LabVIEW:  This property is writable only when the VI is in edit mode, or this method is available only when the VI is in edit mode.

 

Is it possible to change the labels dynamically while the VI is running?

 

Thanks,

 

Lynniz

0 Kudos
Message 3 of 4
(4,897 Views)

Labels are not something which can be changed at run time just as you cannot change the label of a boolean or a numeric.  The label is part of what LV uses to identify the control.  However you can change captions. Use the Page >> TabCaption property.  Read the detailed help for that property. It tells you what you must do to enable the captions.

 

Lynn

 

Message 4 of 4
(4,894 Views)