Use the listbox, tree control, and table controls and indicators located on the List, Table & Tree and Classic List, Table & Tree palettes to give users a list of items from which to select.
You can configure listboxes to accept single or multiple selections. Use the multicolumn listbox to display more information about each item, such as the size of the item and the date it was created.
When you type characters in a listbox at run time, LabVIEW selects the first item in the listbox that begins with the characters you type. Use the left and right arrow keys to go to the previous or next items that match the characters you type. Right-click a listbox and select Selection Mode�Highlight Entire Row from the shortcut menu to highlight the entire row when you select an item.
You can add a symbol next to a list item, such as in the LLB Manager window, where directories and files have different symbols. You also can insert separator lines between list items.
You can use a Property Node to modify list items and to gather information about list items, such as to detect the currently selected items or to set the handling of upper and lowercase characters when you type characters in a listbox at run time.
Refer to the following VIs for examples of using a listbox:
Use the tree control to give users a hierarchical list of items from which to select. You organize the items you enter in the tree control into groups of items, or nodes. Click the expand symbol next to a node to expand it and display all the items in that node.
When you type characters in a tree control at run time, LabVIEW selects the first item in the tree control that begins with the characters you type. You can change the hierarchy of items in the tree control by selecting an item and pressing the period (.) key to indent the current item or the comma (,) key to move the current item to the left. Right-click a tree control and select Selection Mode�Highlight Entire Row from the shortcut menu to highlight the entire row when you select an item.
You configure items in a tree control the same way you configure them in a listbox. You also can change the type of symbol that appears next to each node, and you can configure whether the user can drag and drop items within the tree control.
You can use an Invoke Node to modify items in the tree control and to gather information about items, such as to detect which items, if any, the user double-clicked. When you add an item in the tree control, LabVIEW creates a unique tag for the item. You use this tag to modify items or to gather information about items programmatically. Right-click the tree control and select Edit Items from the shortcut menu to modify the tags that LabVIEW creates for each item.
Use the table control to create a table on the front panel.