Platform | Win32, x64 |
Purpose |
To obtain the position of the mouse, the mouse buttons, and the keyboard shift keys at the time when the last owner-draw (%^dw) or graphics region (%^gr) call-back function was called. |
Syntax |
SUBROUTINE GET_MOUSE_INFO@( X, Y, FLAGS ) |
Description |
This routine should be called immediately on entry to the call-back function. It does not make sense to call this function in other contexts. The X and Y values are pixel positions relating to the bitmap associated with the format code (%gr (Graphics Region) or %dw (Owner Draw Graphics)). Pixel co-ordinates are measures from (0,0) at the top left corner of the area. FLAGS contains the following flags (the parameters will be found in windows.ins): |
MK_LBUTTON |
1 |
Left mouse button depressed |
|
MK_RBUTTON |
2 |
Right mouse button depressed |
|
MK_SHIFT |
4 |
Keyboard shift key depressed |
|
MK_CONTROL |
8 |
Keyboard control key depressed |
|
MK_MBUTTON |
16 |
Middle mouse button depressed |
Notes |
CLEARWIN_INFO@ can be used instead. These values are returned using GRAPHICS_MOUSE_FLAGS, GRAPHICS_MOUSE_X and GRAPHICS_MOUSE_Y. |