User Interface Browser

The User Interface Browser contains a tree view of the user interface objects, such as panels, controls, and menu bars, of the selected .uir. When you select or open a .uir file, the User Interface Browser appears to the right of the User Interface Editor. Double-clicking a control or panel highlights the object in the User Interface Editor and LabWindows/CVI displays the attributes of the object in the Attribute Browser. If you double-click an array of controls, LabWindows/CVI highlights the controls in the User Interface Browser and displays the common attributes of the controls in the array.

Note Note  To access the User Interface Browser, the User Interface Editor must be confined to the Window Confinement Region.

The User Interface Browser is the primary resource for editing arrays of user interface controls. In the User Interface Browser, individual controls associated with a panel are listed underneath the panel; when you create an array of controls, the array of controls is also associated with the panel and appears at the bottom of the associated panel list.

Depending on the type of object you select in the User Interface Browser, the right-click menu in the User Interface Browser contains the following menu items:

All objects:

  • Find—Opens a Find dialog box where you can search for text within the User Interface Browser.
  • Expand All—Expands all categories.
  • Collapse All—Collapses all categories.

Panels and individual controls on a panel:

  • Find UI ObjectHighlights the object in the User Interface Editor and displays the attributes related to the object in the Attribute Browser.
  • Generate Panel/Control Callback—Generates the code for the callback function, if you specify a callback function.
  • View Panel/Control Callback—Highlights the code for the callback function in the source file, if a callback function exists.
  • Create Control Array/Add to Control Array—Creates an array of controls containing the selected control or adds the selected control to the array of controls you select from the pull-right menu.
  • Hide/Show Panel—Hides or displays the panel in the User Interface Editor.

Control arrays and controls in the array:

  • Select Controls—Highlights the controls of the control array in the User Interface Editor. LabWindows/CVI also displays the common attributes of the controls in the Attribute Browser.
  • Rename—Puts the cursor in edit mode for renaming the array of controls. Pass the name of the control array to the GetCtrlArrayFromResourceID function, as the resourceID, to identify the array in your code if you manipulate the array of controls programmatically.
  • Delete—Removes the array of controls from the User Interface Browser; however, the .uir retains the individual controls. For menu bars, the Delete command removes the menu bar from the .uir.
  • Find UI ObjectHighlights the object in the User Interface Editor and displays the attributes related to the object in the Attribute Browser.
  • Remove from Array—Removes the control from the array of controls; however, the .uir retains the individual control.

Menu bars:

  • Create—Opens the Edit Menu Bar dialog box where you can specify menu bar options.
  • Edit—Opens the Edit Menu Bar dialog box where you can edit menu bar options.

WAS THIS ARTICLE HELPFUL?

Not Helpful