...
Scroll tablelayout | |||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
...
Return value
integer
Examples
Code Block | ||
---|---|---|
| ||
// Create a Color Picker User Control. |
...
int $windowId; |
...
int $controlId; |
...
int $color[3]; |
...
...
// First create a User Window to place the Control on |
...
$windowId = `createWindow "MyWindow"`; |
...
// Specify the initial color of the control, Red |
...
$color [0] = 255; // Red |
...
$color [1] = 0; // Green |
...
$color [2] = 0; // Blue |
...
// Create the Control on the Window, passing |
...
// in the Window Id of the User Window we |
...
// just created. Make the Control tri-state and set |
...
// its text |
...
$controlId = `createColorPicker $windowId -color $color`; |
Additional information
Related commands
...