SetInputMode

int SetInputMode (int panelorMenuBarHandle, int controlorMenuItemID, int inputMode);

Purpose

Controls whether LabWindows/CVI recognizes user input on a panel, control, menum bar, menu, or menu item.

When you disable the input mode of an object, it appears dim on the screen.

Parameters

Input
Name Type Description
panelorMenuBarHandle integer Handle of the panel or menu bar on which you want to set the recognition of user input.

Use –1 to specify all panels and all menubars.
controlorMenuItemID integer ID of the control or menu item on which you want to set the recognition of user input.

The ID is the defined constant you assign to the control or menu item in the User Interface Editor or the ID that you obtain from NewCtrl or NewMenuItem.

Use –1 to specify all controls on the panel or all items in the menu bar.
inputMode integer Specifies whether to enable or disable user input.

0 = disable
1 = enable

Return Value

Name Type Description
status integer Return value indicating whether the function was successful. A negative number indicates that an error occurred.

Code Error Message String
xx Success