Shiny Language Reference

Language Reference > User Interface


isenabled

bool isenabled(int ID);

 

 

Returns the enabled state of the control

The ISENABLED statement returns the enabled state of a control. It is the counterpart to enablecontrol.

 

Parameters

ID

The ID of the control to check

 

Return Value

TRUE if the control is enabled and can receive user input, otherwise FALSE.

 

Example Code

function Init()
{
    // Create a disabled button
    int ExplorerButtonID = createbutton(1, 10, 10, 50, 20);
    enablecontrol(ExplorerButtonID, False);

    // Will return False
    bool Status = isenabled(ExplorerButtonID);
}