...
Scroll tablelayout | |||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
...
None
Return value
void
Examples
Code Block | ||
---|---|---|
| ||
// Set the checked value of a Check Box User Control |
...
int $windowId; |
...
int $controlId; |
...
int $checked; |
...
...
// First create a User Window to place the Control on |
...
$windowId = `createWindow "MyWindow"`; |
...
...
// Create the User Control on the Window. |
...
$controlId = `createCheckBox $windowId -triState`; |
...
...
// Set the value to "indeterminate" |
...
setCheckBoxCheck $controlId 2; |
...
...
// Get the value on the Check Box. |
...
$checked = `getCheckBoxCheck $controlId`; |
...
if( $checked == 1 ) |
...
{ |
...
print "Checked"; |
...
} |
...
else if( $checked == 0 ) |
...
{ |
...
print "Unchecked"; |
...
} |
...
else |
...
{ |
...
print "Indeterminate"; |
...
} |
Additional information
Related commands
...