Returns the visibility of the user control that is specified by userControlID
.
All user controls are visible by default, unless created with the -hidden
option.
User Window
getControlVisibility userControlID |
Name | Type | Required | Comments |
---|---|---|---|
userControlId | int | yes | ID of user control to get visibility for. |
None
boolean
// Get the visibility of a control.
int $windowId;
int $controlId;
boolean $isShowing;
// First create a User Window to place the Control on
$windowId = `createWindow "MyWindow"`;
// Create a Push Button Control in the window. Create it hidden.
$controlId = `createPushButton $windowId -text "Sample" -hidden`;
// Get the visibility
$isShowing = `getControlVisibility $controlId`;
print $isShowing;