LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

tab control page name

I’d like an example or description of this:

For Tab Control, change the name of the Tab Page at Runtime?

Thanks,Chris

0 Kudos
Message 1 of 5
(4,969 Views)

I am sorry to say this,but you cannot change the page name of a tab during run time.

The Tab is actually an Enum, and you cannot change the Enum's string values during run time

0 Kudos
Message 2 of 5
(4,967 Views)
You CAN do this.  For each tab, right-click and choose Advanced->Make Page Caption Match Label to uncheck the option.

Then, in your program, get the Pages property.  Use that reference to access the Caption property.



Note that the enum strings do not change, so if the LABEL for the tab is Page 1 and the caption is hello world, the tab value is still Page 1.


Message Edited by Matthew Kelton on 02-27-2008 12:03 PM
Message 3 of 5
(4,956 Views)

thts a goody...

Never knew the option exists....

Thanks

0 Kudos
Message 4 of 5
(4,940 Views)

Thank you both very much,

Chris

0 Kudos
Message 5 of 5
(4,923 Views)