ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

This content has been translated automatically.  Click here  to view the French version.
Help / WLanguage / WLanguage functions / Mobile specific functions / Multi-Touch functions
  • Position of several pointers
  • Limitations
  • Miscellaneous
WINDEV
WindowsLinuxJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac Catalyst
Others
Stored procedures
GestureCurrentPointer (Function)
In french: GestePointeurEncours
Returns the pointer index (finger or stylus) that triggered the call of a specific multi-touch event in an Image control.
This index can be used by GesturePosX and/or GesturePosY to get the vertical and/or horizontal position of the corresponding pointer.
Example
// Récupère la position horizontale du pointeur ayant provoqué
// l'appel de l'événement "Enfoncé" associé à un champ Image 
PositionX is int
PositionX = GesturePosX(GestureCurrentPointer())
Syntax
<Result> = GestureCurrentPointer()
<Result>: Integer
Pointer index (finger or stylus) that triggered the call of a "Pressed" or "Released" event associated with an Image control. The first pointer that touches the screen corresponds to index 1.
Note: In the simulator or Android emulator, this number is always equal to 1.
Remarks
Android

Position of several pointers

To manage several pointers on the screen, the device must be equipped with a multi-touch display..

Limitations

  • Use condition:
    • This function must be used in the events of an Image control that has enabled event calling for each pointer: option "Recall processes for each pointer (multiple pointers)" in the "Detail" tab of the control description.
    • This function must be called in one of the following field events: "Press", "Release", "Finger scroll", "Horizontal and vertical scan" or "Finger zoom". Otherwise, the function will always return 1.
  • iPhone/iPadIOS WidgetMac Catalyst Up to 2 pointers can be supported.
  • WEBDEV - Browser code The browser used must support the multi-touch feature.

Miscellaneous

  • To find out the horizontal position (X) of a pointer, use GesturePosX.
  • To find out the vertical position (Y) of a pointer, use GesturePosY.
  • To find out the number of pointers in contact with the screen, use GestureNbPointer.
Component: WDJS.DLL
Minimum version required
  • Version 17
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 03/27/2025

Send a report | Local help