LabWindows/CVI

UIR Constants in Function Panels

The Select UIR Constant command can help you use the function panels for the User Interface Library. Use this command to select from the list of constant names associated with the objects in your .uir files.

When you specify a parameter for an input control that can accept a panel resource ID, control ID, menu bar resource ID, menu ID, or menu item ID, use Select UIR Constant to open the Select UIR Constant dialog box.

The list in User Interface Resource files contains all the .uir files open or in the workspace. Only constants from the currently selected .uir file appear in the list at the bottom of the dialog box. Click a file to select it.

Constant type contains the categories of constant names to display in the list below Constant type. When you select Controls from Constant type, you can enable the Show all control types checkbox to view a list of all constant names in the selected .uir file. If the Show all control types checkbox is disabled, LabWindows/CVI displays only the constant names applicable to the function panel.

Note Note  If the .uir file was last saved in LabWindows/CVI 9.0 or earlier, the Constant type list displays all constant names in the .uir file regardless of whether the Show all control types checkbox is enabled.

To copy the currently selected constant name into the function panel control, click OK.

Click Cancel to cancel the operation and close the Select UIR Constant dialog box.

Note  If you attempt to use Select UIR Constant on the Panel Handle and Menu Bar Handle parameters that appear on most User Interface Library function panels, an error message appears. These parameters take the values returned from LoadPanel and LoadMenuBar, so an attempt to select .uir constants fails.

You can use Select UIR Constant in user-defined panels. That way, the command is available to function panels for user libraries that you build on top of the User Interface Library.