Shiny Language Reference
Language Reference > User Interface
enablecontrol
enablecontrol(int ID, bool IsEnabled);
Enables a control
The ENABLECONTROL statement enables or disables a control for user input. For example, disabling a button prevents it from being clicked, however the button is still drawn in the panel.
All controls are enabled by default.
Parameters
ID
The ID of the control to enable
IsEnabled
TRUE if the control should be enabled, otherwise FALSE.
Return Value
None
Example Code
function Init()
{
// Create a disabled button
int ExplorerButtonID = createbutton(1, 10, 10, 50, 20);
enablecontrol(ExplorerButtonID, False);
}