Go to: Synopsis. Return value. Flags. MEL examples.
disable [-value boolean]
[string]
disable is undoable, NOT queryable, and NOT editable.
This command enables or disables the control passed as argument.None
Long name (short name) | Argument types | Properties | ||
---|---|---|---|---|
-value(-v)
|
boolean
|
|||
|
Flag can appear in Create mode of command | Flag can appear in Edit mode of command |
Flag can appear in Query mode of command | Flag can be used more than once in a command. |
window; formLayout; button fred; showWindow; disable fred; // dims the button disable -v false fred; // un-dims it