LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Change values of Tabs on Tab Control

I have a LabVIEW application where it is possible to change the language on the front panel, in connection with this I want to change the names/labels of the Tabs on a Tab Control.
Is this possible?
0 Kudos
Message 1 of 8
(5,363 Views)

Hi Labbie,

yes it is possible. See the attachment.

Mike

0 Kudos
Message 2 of 8
(5,354 Views)
See attached LV8.5 example and post again if you have further questions.
Message 3 of 8
(5,352 Views)
Thank you! 🙂
Message 4 of 8
(5,352 Views)
I can't open the last example because I got LabVIEW 8.2, not 8.5...
Message 5 of 8
(5,349 Views)
Here is it in LV8.0


Message Edité par JB le 03-26-2008 03:33 PM
Message 6 of 8
(5,340 Views)
It is possible. It is not as straightforward as changing some other properties.

First, on the front panel go to each tab and deselect Advanced >> Make caption match page label. This needs to be done for each tab, once per tab control is not sufficient.

Next, create a property node from the tab control set to read the Pages property. This produces an array of refnums for the tab pages. In a for loop autoindex the refnums and connect to a property node Tab Caption. Feed an array of strings with the new captions and you have changed the appearance of the tabs!

Close the refnums.

Lynn
Message 7 of 8
(5,331 Views)

Awesome all... got what i needed.

 

Peace,

 

Pete

0 Kudos
Message 8 of 8
(5,273 Views)