Vicon Shogun banner

Description

Shows or hides the user control that is specified by userControlID. All user controls are visible by default, unless created with the -hidden option.

Functional area

User Window

Command syntax

Syntax

showControl userControlID showBoolean

Arguments

NameTypeRequiredComments
showBooleanbooleanyesFlag to show/hide the user control
userControlIdintyesID of user control to show/hide.

Flags

None

Return value

boolean

Examples

// Show/Hide a control.
int $windowId;
int $controlId;
boolean $wasShowing;

// First create a User Window to place the Control on
$windowId = `createWindow "MyWindow"`;

// Create a Push Button Control in the window. Create it hidden.
// We will show it later.
$controlId = `createPushButton $windowId -text "Sample" -hidden`;

// Show the Control, getting its previous visibility
$wasShowing = `showControl $controlId true`;
print $wasShowing;

Additional information

Related commands