ONLINE HELP WINDEV, WEBDEV AND WINDEV MOBILE
Version: 151617181920212223242526
Retrieving the mouse position in a window Hide the details
Vertical position (or Y coordinate) of 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 in relation to the top left corner of window (or window if the event occurs 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 (in relation to the top left corner of image). This constant should only be used when the function MouseYPos is called in an event associated with an Image control. Otherwise, MouseYPos will return -1. This parameter is not available.New in version 17Marker used to calculate the position: mpControl(Default value)Mouse position in relation to the top left corner of window (or window if the event occurs 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 (in relation to the top left corner of image). This constant should only be used when the function MouseYPos is called in an event associated with an Image control. Otherwise, MouseYPos will return -1. This parameter is not available.Marker used to calculate the position: mpControl(Default value)Mouse position in relation to the top left corner of window (or window if the event occurs 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 (in relation to the top left corner of image). This constant should only be used when the function MouseYPos is called in an event associated with an Image control. Otherwise, MouseYPos will return -1. This parameter is not available.
Retrieving the mouse position in a page Hide the details
Vertical position (or Y coordinate) of 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).
Indicates the marker used to calculate the position:mpControl(Default value)Mouse position in relation to the top left corner of control (or page if the event occurs on the page).If this constant is selected, MouseYPos 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: 01/04/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: