Company Events Academic NI Developer Zone Support Solutions Products & Services Contact NI MyNI

Adding Text Items in Ring Controls

LabVIEW 8.5 Help
August 2007

NI Part Number:
371361D-01

»View Product Info

Complete the following steps to add items to the list of items in a ring control.

  1. Right-click the ring control and select Edit Items from the shortcut menu to display the Edit Items page of the Ring Properties dialog box.
  2. Double-click in an empty cell in the Items column and enter the string you want to display in the list of items for the ring control. You also can place the cursor in a cell that already contains a string, click the Insert button to create an empty row above the cell, and enter a string in the new cell.

    Enter a hyphen (-) in an empty cell to create a separator in the list of items for the control.
Note  To create an item that contains only a hyphen that does not appear as a separator in the control, enter a space before or after the hyphen.
  1. (Optional) After you enter a string in the Items column, LabVIEW adds a numeric value to the corresponding cell in the Values column. LabVIEW assigns sequential values that correspond to the order of the items in the list, starting with a value of 0 for the first item. You also can assign a specific numeric value to each item.
  2. Click the OK button.

You also can add an item to a ring control by placing the cursor in the ring control, pressing the <Shift-Enter> keys, and entering the string you want to display in the list of items for the ring control. You can edit the label for an item in a ring control by placing the cursor in the ring control, editing the label, and pressing the <Ctrl-Enter> keys. (Mac OS) Press the <Option-Enter> keys. (Linux) Press the <Alt-Enter> keys.

You can configure the ring control so users can enter numeric values not already associated with any entries in the list of items defined for the control.

You also can use the Strings [] property to add items programmatically.


Resources


 

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