Versions Compared

Key

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

...

boolean

Scroll pagebreak

Examples

Code Block
languagetext
// Show how to disable a control.

...


int $windowId;

...


int $controlId;

...


boolean $wasEnabled;

...


 

...

// 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"`;

...


 

...

// Now disable the control

...


$wasEnabled = `enableControl $controlId false`;

...


print $wasEnabled;

Additional information

Related commands

...