Academic Company Events Community Support Solutions Products & Services Contact NI MyNI
43 ratings:
 4.34 out of 5   

How do I Programmatically Change the Names of Tab Control Pages in LabVIEW?



Primary Software:
Primary Software Version: 6.1
Primary Software Fixed Version: N/A
Secondary Software: N/A

Problem:
I would like to programmatically change the name of the pages of a Tab Control, is there a way to do this in LabVIEW?

Solution:
In order to programmatically replace the names of pages in a Tab Control follow the instructions and reference the VI snippet below.
  1. Create a tab control from the controls palette, Controls»Modern»Containers»Tab Control
  2. Create a reference to the Tab Control by right clicking the Tab Control and selecting Create»Reference and wire the reference to a property node.
  3. Select the Pages property from the property node.  The output will be an array of references of the pages of the Tab Control
  4. Wire the array of references to an Index Array VI ( Functions»Array palette ), the index will correspond to the page.
  5. Wire the output reference to 2 property nodes.  The first property node select TabCaption, the second property node select IndependentLabel. The TabCaption property will be the new names, and the IndependentLabel property will make the TabCaption independent of the page label.
  6. Run the VI.





Related Links:
KnowledgeBase 234G2S2L: Setting the Order of Controls When a Tab Control Is on the Front Panel
KnowledgeBase 4V0DSQQL: Programmatically Setting the Active Page of a Tab Control in LabVIEW
KnowledgeBase 3OI8L8IZ: Accessing The Controls In a Tab Control Programmatically


Attachments:





Report Date: 03/07/2002
Last Updated: 10/04/2013
Document ID: 2J6IDMWD

Your Feedback! poor Poor  |  Excellent excellent   Yes No
 Document Quality? 
 Answered Your Question? 
  1 2 3 4 5
Please Contact NI for all product and support inquiries.submit