...
Scroll tablelayout | |||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
...
integer
Scroll pagebreak |
---|
Examples
Code Block | ||
---|---|---|
| ||
// 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
...