4D v13.4GET MOUSE |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
4D v13.4
GET MOUSE
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| GET MOUSE ( mouseX ; mouseY ; mouseButton {; *} ) | ||||||||
| Parameter | Type | Description | ||||||
| mouseX | Longint |
|
Horizontal coordinate of mouse | |||||
| mouseY | Longint |
|
Vertical coordinate of mouse | |||||
| mouseButton | Longint |
|
Mouse button state: 0 = Button up 1 = Button down 2 = Right button down 3 = Both buttons down | |||||
| * | Operator |
|
If specified, global coordinate system is used If omitted, local coordinate system is used | |||||
The GET MOUSE command returns the current state of the mouse.
The horizontal and vertical coordinates are returned in mouseX and mouseY. If you pass the * parameter, the coordinates are expressed relative to the screen. If you omit the * parameter, they are expressed relative to the frontmost window of the current process.
The parameter mouseButton returns the state of the buttons, as listed previously.
Note: The values 2 and 3 can be returned under Mac OS X starting with version 10.2.5 only.
See the example for the command Pop up menu.
Product: 4D
Theme: User Interface
Number:
468
Modified: 4D 2003
Caps lock down
Macintosh command down
Macintosh control down
Macintosh option down
ON EVENT CALL
Shift down
Windows Alt down
Windows Ctrl down