Programmieren mit dBASE PLUS: Events: onMouseOut


Event fired when the user moves a mouse from over a control, form or subform.

Eigenschaft von

Bearbeiten

Allen Form-Objekten, Form, SubForm

Parameters

Bearbeiten

<flags expN>

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.

<col expN>

The horizontal position of the mouse when it was moved from over a control, form or subform.

<row expN>

The vertical position of the mouse when it was moved from over a control, form or subform.

Beschreibung

Bearbeiten

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
2 Shift
3 Ctrl
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.