Company Events Academic Community Support Solutions Products & Services Contact NI MyNI

Configuring Tab Control Pages Programmatically

LabVIEW 2013 Help

Edition Date: June 2013

Part Number: 371361K-01

»View Product Info

Complete the following steps to configure a tab control page programmatically.

  1. Right-click a tab of a tab control and select Create»Property Node»Pages from the shortcut menu. LabVIEW creates an implicitly linked Property Node on the block diagram for the property you selected.
  2. Add the Index Array function to the block diagram.

  3. Wire the Pages output of the Property Node to the n-dimension array input of the Index Array function.
  4. Right-click the Index input of the Index Array function and select Create»Constant from the shortcut menu to create a numeric constant.
  5. Type the index of the page you want to configure and press the <Enter> key. The index corresponds to the order of the pages as they appear on the tab control, in the range 0 to n–1, where n is the number of pages on the tab control. For example, type 0 to configure the first page in the tab control.
  6. Use the Positioning tool to resize the Index Array function if necessary.
  7. Use the Wiring tool to right-click an element output of the Index Array function and select Create»Property for Page Class and a property from the shortcut menu. LabVIEW creates a Property Node for the property you selected.
  8. Add the Property Node to the block diagram and wire the element output of the Index Array function to the reference input of the Property Node you created in step 8.
  9. Configure the Property Node if necessary.

After you obtain a reference to a tab control page, you also can configure a control within a tab control page programmatically using the Controls on Page property.

Refer to the Programmatically Manipulate a Tab Control VI in the labview\examples\Controls and Indicators\Containers directory for an example of configuring tab control pages programmatically.


 

Your Feedback! poor Poor  |  Excellent excellent   Yes No
 Document Quality? 
 Answered Your Question? 
Add Comments 1 2 3 4 5 submit