...
boolean
Scroll pagebreak |
---|
Examples
...
language | text |
---|
// Set the checked value of a Radio Button User Control
...
int $windowId;
...
int $controlId1, $controlId2, $controlId3;
...
int $rect[ 4 ];
...
// First create a User Window to place the Controls on
...
$windowId = `createWindow "MyWindow"`;
...
// Create the User Controls on the Window. Check the middle one.
...
$rect[ 0 ] = 20;
...
$rect[ 1 ] = 20;
...
$rect[ 2 ] = 100;
...
$rect[ 3 ] = 40;
...
$controlId1 = `createRadioButton $windowId -pos $rect -text "Radio 1"`;
...
$rect[ 1 ] = 50;
...
$rect[ 3 ] = 70;
...
$controlId2 = `createRadioButton $windowId -pos $rect -text "Radio 2" -check`;
...
$rect[ 1 ] = 80;
...
$rect[ 3 ] = 100;
...
$controlId3 = `createRadioButton $windowId -pos $rect -text "Radio 3"`;
...
// Now check the last one, making sure to uncheck the middle one we
...
// checked before
...
setRadioButtonCheck $controlId1 false;
...
setRadioButtonCheck $controlId2 false;
...
setRadioButtonCheck $controlId3 true;
Additional information
Related commands
...