...
integer array
Scroll pagebreak |
---|
Examples
Code Block | ||
---|---|---|
| ||
// Get the selected List Box User Control items |
...
int $windowId; |
...
int $controlId; |
...
int $indices[]; |
...
...
// First create a User Window to place the Control on |
...
$windowId = `createWindow "MyWindow"`; |
...
...
// Create the User Control on the Window. |
...
$controlId = `createListBox $windowId -multi`; |
...
...
// Add some items to the List Box. |
...
addListBoxItem $controlId "Item 1"; |
...
addListBoxItem $controlId "Item 2"; |
...
addListBoxItem $controlId "Item 3"; |
...
...
// Select the second and third items |
...
selectListBoxItem $controlId 1; |
...
selectListBoxItem $controlId 2; |
...
...
// Get the selected items |
...
$indices = `getListBoxSelItems $controlId`; |
...
print $indices; |
Additional information
Related commands
...