...
void
Scroll pagebreak |
---|
Examples
...
language | text |
---|
// Set the event handler for the User Check Box.
...
int $windowId;
...
int $controlId;
...
// First create a User Window to place the Control on
...
$windowId = `createWindow "MyWindow"`;
...
// Create the User Control on the Window.
...
$controlId = `createCheckBox $windowId -text "Check Me"`;
...
// Save the control ID to our profile, so we can retrieve it
...
// from the event handler
...
writeProfileInt "MyWindowSection" "CheckBoxId" $controlId;
...
// Set the -click event handler for the Check Box. When
...
// the user clicks on the Check Box, this script will be
...
// executed. CheckBoxClickHandler must reside in one of
...
// the scripts directories.
...
setCheckBoxHandler $controlId -click "CheckBoxClickHandler";
Additional information
Related commands
...