...
Scroll tablelayout | |||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
...
Return value
boolean
Examples
Code Block | ||
---|---|---|
| ||
// Get the enabled status of a User Control. |
...
int $windowId; |
...
int $controlId; |
...
boolean $isEnabled; |
...
...
// First create a User Window to place the Control on |
...
$windowId = `createWindow "MyWindow"`; |
...
// Create a Push Button Control in the window. We will disable it |
...
// after we create it. |
...
$controlId = `createPushButton $windowId -text "Disabled"`; |
Code Block | ||
---|---|---|
| ||
// Disable the control |
...
enableControl $controlId false; |
Code Block | ||
---|---|---|
| ||
// Now get the enabled status. Should be false. |
...
$isEnabled = `getControlEnabled $controlId`; |
...
print $isEnabled; |
Additional information
Related commands
...