Admin Production ni-theme
Current Publication

Editing Controls

LabWindows/CVI

Edit»Control

The Control command opens a dialog box in which you can edit a control you select. You also can double-click a control to open this dialog box. The dialog box can have various sections including, Source Code Connection, Control Settings, Control Appearance, Quick Edit Window, and Label Appearance. The sections available in the dialog box for a selected control vary slightly depending on the type of control that you are editing.

You can select multiple controls of the same type and edit them simultaneously using one instance of the Edit Control dialog box. If you edit multiple controls, some Edit Control dialog box options, such as Constant name, are completely dimmed. This indicates that you cannot edit them. If you edit multiple controls together, and each control has a different value for a particular Edit Control dialog box option, the option value is dimmed even though the option label remains undimmed. This indicates that you can modify the dimmed value. If you do so, LabWindows/CVI applies the new value to all of the selected controls.

Note Note  You also can set and edit many of the attributes in this dialog box using the Attributes Browser.
  • The Source Code Connection section of the Edit Control dialog box contains the following options:
    • Constant name—The User Interface Editor appends the constant name to the panel resource ID to form the ID for the control. The ID identifies the control in any control-specific functions, such as GetCtrlVal and SetCtrlAttribute. The ID is defined in the .h file that LabWindows/CVI generates when you save the .uir file. If you do not assign a constant name, the User Interface Editor assigns one for you when you save the .uir file.
    • Callback function—Type the name of the function to call when an event is generated on the control. Naming a callback function is optional.
  • The Control Settings section of the Edit Control dialog box displays specific attributes for the type of control that you are editing. This section contains the data-specific attributes for the control.

    Ring controls and list boxes have a Label/Value Pairs button in the Control Settings section of the Edit Control dialog box.
  • The Control Appearance section of the Edit Control dialog box displays specific attributes for the type of control that you are editing. The section contains attributes pertaining to the physical appearance of the control.
  • From the Quick Edit Window, you can perform high-level edits on the control. The mode tools operate like the tools in the main User Interface Editor. The Quick Edit Window also immediately reflects any changes you make in other sections of the dialog box.
  • The Label Appearance section of the Edit Control dialog box contains attributes pertaining to the physical appearance of the control label.

    If you type a double underscore before any letter in the Label field, the letter appears underlined in the label. The user can select the control by pressing <Alt> and the underlined letter, provided that no accessible menu bars contain a menu with the same underlined letter.