ONLINE HELP WINDEV, WEBDEV AND WINDEV MOBILE
Retrieving the mouse position in a window Hide the details
Horizontal position (X-coordinate) of the mouse or stylus, in pixels. By default, this position is relative to the upper-left corner of the control on which the left mouse button was pressed. -1 if an error occurred.
Marker used to calculate the position: mpControl(Default value)Mouse position relative to the upper-left corner of the hovered control or window, depending on where the event occurs.mpImageMouse position in the Image control (relative to the upper-left corner). This constant should only be used when MouseXPos is called in an event associated with an Image control. Otherwise, MouseXPos will return -1.mpScreenMouse position in the screen (relative to the upper-left corner).mpWindowMouse position relative to the upper-left corner of the window. This parameter is not available.
Last update: 06/22/2023
Send a report |
I accept the
terms of the license agreement
All you have to do is configure your product as follows: