ONLINE HELP WINDEV, WEBDEV AND WINDEV MOBILE
Horizontal position (or X coordinate) in pixels of the pointer in relation to the relevant marker, -1 if an error occurred.
Subscript of the pointer (finger) whose horizontal position must be retrieved. The first pointer in contact with the screen corresponds to the subscript 1.If this parameter is not specified, the function will return the position of the first pointer in contact with the screen.
If the subscript does not correspond to a pointer in contact with the screen or if the specified subscript is greater than 1 and if the device does not support the multi-touch, the function will return -1.
Marker used to calculate the position: gpControl (default value)Position of the pointer in relation to the top left corner of the control (or window if the event occurred on the window).gpScreenPosition of the pointer in the screen (in relation to the top left corner of the screen).gpWindowPosition of the pointer in relation to the top left corner of the window to which belongs the control on which the event occurred. This constant is not availablegpImagePosition of the pointer in relation to the top left corner of the image displayed by an Image control. This constant can be used when an image is not entirely displayed in an Image control in order to find out the position of the pointer in the source image (while taking the possible zoom into account). This constant should only be used when the function GesturePosX is called in an event associated with an Image control. Otherwise, GesturePosX will return -1.Versions 19 and latergpPageNew in version 19gpPagegpPagePosition of the pointer in relation to the top left corner of the page to which belongs the control on which the event occurred.
Last update: 01/01/2021
Send a report | Local help
I accept the terms of the license agreement
All you have to do is configure your product as follows: