showControl
showControl
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
Name | Type | Required | Comments |
---|---|---|---|
showBoolean | boolean | yes | Flag to show/hide the user control |
userControlId | int | yes | ID of user control to show/hide. |
Flags
None
Return value
boolean
Loading
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
, multiple selections available,
Related content
showControl
showControl
More like this
showControl
showControl
More like this
showControl
showControl
More like this
showControl
showControl
More like this
showControl
showControl
More like this
showControl
showControl
More like this