...
Scroll tablelayout | |||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
...
Return value
integer
Examples
Code Block | ||
---|---|---|
| ||
// Create a static 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 - 100 units wide |
...
$rect[0] = 20; // Left |
...
$rect[1] = 20; // Top |
...
$rect[2] = 120; // Right |
...
$rect[3] = 40; // Bottom |
...
...
// Create the Control on the Window, passing |
...
// in the Window Id of the User Window we |
...
// just created. |
...
$controlId = `createStaticBox |
...
$windowId-text "This is some text!" -pos $rect`; |