JavaScript
windowObject.setButtonDisabled Method
Syntax
windowObj.setButtonDisabled(buttonName, disable);
Arguments
- buttonNamestring
The name of the button you want to show or hide.
- disableboolean
A true/false value. If true, the specified button will be disabled. If false, the specified button will be enabled.
Description
Specifies the enabled state of a button in the window toolbar section.
Example
//get a pointer to the window object var windowObj = {dialog.object}.getWindow('MYWINDOW'); if (windowObj) { windowObj.setButtonDisabled('button1',true); }