Versions Compared

Key

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

...

Scroll tablelayout
sortDirectionASC
repeatTableHeadersdefaultstyle
widths15%, 15%, 14%, 13%, 43%
style
sortByColumn1
sortEnabledfalse
cellHighlightingtrue

...

integer

Scroll pagebreak

Examples

Code Block
languagetext
// Create a list box user control.

...


int $windowId;

...


int $controlId; 

...

int $rect[4];

...


 

...

// First create a user window to place the Control on

...


$windowId = `createWindow "MyWindow"`; 

...

// Specify the size of the Control - 80 units high

...


$rect[0] = 20;  // Left

...


$rect[1] = 20;  // Top

...


$rect[2] = 70;  // Right

...


$rect[3] = 100; // Bottom

...


 

...

// Create the Control on the Window, passing

...


// in the Window Id of the user window we 

...

// just created. Make the list sorted, add some items,

...


// and set the initial selection. Also allow for multiple

...


// selection

...


$controlId = `createListBox $windowId "Item #3" "Item #1" "Item #2" -sort -sel 1 -multi -pos $rect`;

Additional information

Related commands

...