ONLINE HELP WINDEV, WEBDEV AND WINDEV MOBILE
Version: 151617181920212223242526
Retrieving the mouse position in a window Hide the details
Horizontal position (or X coordinate) of the mouse (or stylus) in pixels. By default, this position is given in relation to the top left corner of control on which the left mouse button was pressed. -1 if an error occurred.
Versions 17 and laterMarker used to calculate the position: mpControl(Default value)Mouse position relative to the top left point of the hovered control (or of the window if the event is on the window).mpScreenMouse position in the screen (in relation to the top left corner of screen).mpWindowMouse position in relation to the top left corner of window.mpImageMouse position in the Image control (relative to the top left corner of the Image control). This constant should only be used when the function MouseXPos is called in an event associated with an Image control. Otherwise, MouseXPos will return -1. This parameter is not available.New in version 17Marker used to calculate the position: mpControl(Default value)Mouse position relative to the top left point of the hovered control (or of the window if the event is on the window).mpScreenMouse position in the screen (in relation to the top left corner of screen).mpWindowMouse position in relation to the top left corner of window.mpImageMouse position in the Image control (relative to the top left corner of the Image control). This constant should only be used when the function MouseXPos is called in an event associated with an Image control. Otherwise, MouseXPos will return -1. This parameter is not available.Marker used to calculate the position: mpControl(Default value)Mouse position relative to the top left point of the hovered control (or of the window if the event is on the window).mpScreenMouse position in the screen (in relation to the top left corner of screen).mpWindowMouse position in relation to the top left corner of window.mpImageMouse position in the Image control (relative to the top left corner of the Image control). This constant should only be used when the function MouseXPos is called in an event associated with an Image control. Otherwise, MouseXPos will return -1. This parameter is not available.
Retrieving the mouse position in a page Hide the details
Horizontal position (or X coordinate) of the mouse cursor in relation to the specified marker (in pixels), 0 if the information is not available (depending on the browser used and on the control).
Marker used to calculate the position:mpControl(Default value)Mouse position relative to the top left point of the hovered control (or of the page if no control is hovered and if the event is on the page).If this constant is selected, MouseXPos must be used in the "OnClick" code of control.mpScreenMouse position in the screen (in relation to the top left corner of screen).mpPageMouse position in relation to the top left corner of page (while taking the page "scrolling" into account).
Error
Various
Limits in browser code
Last update: 04/15/2021
Send a report | Local help
Searching...
I accept the terms of the license agreement
All you have to do is configure your product as follows: