Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Scroll tablelayout
sortDirectionASC
repeatTableHeadersdefaultstyle
widths19%, 11%, 13%, 57%
style
sortByColumn1
sortEnabledfalse
cellHighlightingtrue

...

Return value

boolean

Examples

Code Block
languagetext
// 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
languagetext
// Disable the control

...


enableControl $controlId false;
Code Block
languagetext
// Now get the enabled status. Should be false.

...


$isEnabled = `getControlEnabled $controlId`;

...


print $isEnabled;

Additional information

Related commands

...