Shiny Language Reference

Language Reference > User Interface


showcontrol

showcontrol(int ID, bool IsVisible);

 

 

Shows or hides a control

The SHOWCONTROL statement shows or hides a control. All controls are visible by default.

 

Parameters

ID

The ID of the control to change visibility.

IsEnabled

TRUE if the control should be visible, otherwise FALSE.

 

Return Value

None

 

Example Code

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