...
Scroll tablelayout | |||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
...
integer
Scroll pagebreak |
---|
Examples
Code Block | ||
---|---|---|
| ||
// Create a Radio Button User Control. |
...
int $windowId; |
...
int $radioId1; |
...
int $radioId2; |
...
int $radioId3; |
...
int $rect[4]; |
...
...
// First create a User Window to place the Controls on |
...
$windowId = `createWindow "MyWindow"`; |
...
...
// Specify the size and position of the first Radio Button |
...
$rect[0] = 0; // Left |
...
$rect[1] = 0; // Top |
...
$rect[2] = 100; // Right |
...
$rect[3] = 20; // Bottom |
...
...
// Create the first Control on the Window. Make sure to |
...
// set the -first flag so that all three can work together |
...
$radioId1 = `createRadioButton $windowId -text "Option 1" -pos $rect -check -first`; |
...
...
// Now position the second Radio Button |
...
$rect[0] = 0; // Left |
...
$rect[1] = 25; // Top |
...
$rect[2] = 100; // Right |
...
$rect[3] = 45; // Bottom |
...
...
// ... and create it |
...
$radioId2 = `createRadioButton $windowId -text "Option 2" -pos $rect`; |
...
...
// And finally the third Radio Button |
...
$rect[0] = 0; // Left |
...
$rect[1] = 50; // Top |
...
$rect[2] = 100; // Right |
...
$rect[3] = 70; // Bottom |
...
$radioId3 = `createRadioButton $windowId -text "Option 3" -pos $rect`; |
Additional information
Related commands
...