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