Programmieren mit dBASE PLUS: Events: onMouseOut
Event fired when the user moves a mouse from over a control, form or subform.
A single-byte value that tells you which other keys and mouse buttons were pressed when the mouse was moved from over a control, form or subform.
The horizontal position of the mouse when it was moved from over a control, form or subform.
The vertical position of the mouse when it was moved from over a control, form or subform.
Use onMouseOut to perform an action when the user moves a mouse from over a control, form or subform The onMouseOut event can also trap Shift, Ctrl, middle mouse button, or right mouse button presses if they are present at the time the user moved the mouse from over the form, subform or control.
You can test the state of multiple keys that have been pressed simultaneously. The state of each of the three mouse buttons and the Shift and Ctrl keys is stored in a separate bit in the <flags expN> parameter, as follows:
|Bit number||Flag for|
|0||Left mouse button|
|1||Right mouse button|
|4||Middle mouse button|
To check if the key or button was down, use the BITSET( ) function with the <flags expN> as the first parameter, and corresponding the bit number as the second parameter. BITSET( ) will return true if the key or button was down, and false if it was not.
The <col expN> and <row expN> parameters contain values that are relative to the object that fired the event. For example, the upper left corner of a button is always row 0, column 0, even if that button is in the bottom corner of the form.