The event methods defined in the Button class are summarized in the following table.
Event | Occurs… |
---|---|
click | When the user presses and then releases the left mouse button |
contextMenu | After the right mouseUp event and after the keyUp event |
dblClick | When the user presses and releases the left mouse button, and then presses and releases it again |
dragDrop | When a dragged window is dropped over a control belonging to the same application |
dragOver | For each form or control of the application over which a window is dragged |
gotFocus | When a control receives the focus |
keyDown | When the user presses a key while the control has the focus |
keyPress | When the user presses and releases an ANSI key |
keyUp | When the user releases a key while the control has the focus |
lostFocus | When a control loses the focus |
mouseDown | When the user presses a mouse button |
mouseEnter | When the user moves the mouse onto a button |
mouseHover | When the user moves the mouse onto a control and then the mouse remains static for one second or longer |
mouseLeave | When the user moves the mouse off a button |
mouseMove | When the user moves the mouse |
mouseUp | When the user releases a mouse button |
paint | When part or all of a control is exposed |
sysNotify | When a specified JADE system event occurs |
userNotify | When triggered from the JADE Object Manager by a user call |
For details, see "Window, Form, and Control Events", later in this document.