...
void
Scroll pagebreak |
---|
Examples
Code Block | ||
---|---|---|
| ||
// Set the event handler for the User Static 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 = `createStaticBox $windowId -text "Static Text"`; |
...
...
// Save the control ID to our profile, so we can retrieve it |
...
// from the event handler |
...
writeProfileInt "MyWindowSection" "StaticBoxId" $controlId; |
...
...
// Set the -click event handler for the Static Box. When |
...
// the user mouse clicks on the Static Box, this script will be |
...
// executed. StaticBoxClickHandler must reside in one of |
...
// the scripts directories. |
...
setStaticBoxHandler $controlId -click "StaticBoxClickHandler"; |
Additional information
Related commands
...