MSM-Workstation
Macros

Go back to the alphabetic list of macros
Go back to the first page of this tutorial

%%Disable ( ObjComponent )

Disable a window or control.

ObjComponent The window or control to be disabled. Default is the current control if any, otherwise the current window. May also specify the event or choice to be disabled.

The macro %%Disable is used to deactivate a window or control, preventing it from receiving focus and user input. Using the extended form of ObjComponent it can also disable a specific event, or in the case of a control with choices, a specified choice.

Examples

%%Disable(Win1.Button1)
Deactivate the control called "Button1" on the window called "Win1".

%%Disable(.E.Choose)
Block the high-level event Choose on the current window or component.

%%Disable(Radio1.C.1)
Disable the choice with the internal identification "1" on the control called "Radio1"

See also

%%Enable and %%EnableMenu.