...
Scroll tablelayout | |||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
...
Return value
integer
Examples
Code Block | ||
---|---|---|
| ||
// Create a Push Button User Control. |
...
int $windowId; |
...
int $controlId; |
...
int $rect[4]; |
...
...
// First create a User Window to place the Control on |
...
$windowId = `createWindow "MyWindow"`; |
...
...
// Position the Control |
...
$rect[0] = 20; // Left |
...
$rect[1] = 20; // Top |
...
$rect[2] = 80; // Right |
...
$rect[3] = 45; // Bottom |
...
...
// Create the Control on the Window, passing |
...
// in the Window Id of the User Window we |
...
// just created. Make it the default button in the User Window |
...
$controlId = `createPushButton $windowId -pos $rect -def -text "Push Me!"`; |