Important Notice
The pages on this site contain documentation for very old MS-DOS software,
purely for historical purposes.
If you're looking for up-to-date documentation, particularly for programming,
you should not rely on the information found here, as it will be woefully
out of date.
MouseMove Event
◄Summary► ◄Details► ◄Example► ◄Contents► ◄Index► ◄Back►
──────────────────────────────────────────────────────────────────────────────
Occurs when the user moves the mouse.
SUB Form_MouseMove (Button AS INTEGER, Shift AS INTEGER,
X AS SINGLE, Y AS SINGLE)
SUB ctlname_MouseMove ([Index AS INTEGER,] Button AS INTEGER,
Shift AS INTEGER, X AS SINGLE, Y AS SINGLE)
■ Button State of the mouse buttons, in which a bit is set if the
button is down. The Button argument is a bit field, with bits
corresponding to the left button (bit 0), and right button
(bit 1) ─ values 1, and 2, respectively. Button indicates the
complete state of the mouse buttons; some, all, or none of
these bits can be set, indicating that some, all, or none of
the buttons are pressed.
■ Shift State of the Shift, Ctrl, and Alt keys; bit is set if
the key is down. The Shift argument is a bit field, with
the least-significant bits corresponding to the Shift
key (bit 0), the Ctrl key (bit 1), and the Alt key (bit 2).
These bits correspond to the values 1, 2, and 4,
respectively. Shift indicates the state of these keys.
Some, all, or none of the bits can be set, indicating that
some, all, or none of the keys is pressed.
■ X, Y Current location of the mouse pointer.
■ Index Uniquely identifies a control in a control array.
Applies To
◄File List Box Control► ◄Form►
◄Label Control► ◄List Box Control►
◄Picture Box Control► ◄Directory List Box►
See Also
◄Button and Shift Arguments► ◄Click Event►
◄Creating a Control Array► ◄DblClick Event►
◄ScaleHeight Property► ◄ScaleWidth Property►