Versions Compared

Key

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

...

boolean

Scroll pagebreak

Examples

Code Block
languagetext
// Select an item in a Drop List User Control.

...


int $windowId; 

...


int $controlId;

...


int $index;

...


 

...

// First create a User Window to place the Control on

...


$windowId = `createWindow "MyWindow"`;

...


 

...

// Create the User Control on the Window. 

...


$controlId = `createDropList $windowId`;

...


 

...

// Add some items to the Drop List.

...


addDropListItem $controlId "Item 1";

...


$index = `addDropListItem $controlId "Item 2"`;

...


addDropListItem $controlId "Item 3";

...


 

...

// Select the item whose index we just got.

...


selectDropListItem $controlId $index;

Additional information

Related commands

...