PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

Home | Sign in | English US
  • Position of several pointers
  • Limitations
  • Various
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadApple WatchUniversal Windows 10 AppWindows Mobile
Others
Stored procedures
GestureCurrentPointer (Function)
In French: GestePointeurEncours
Returns the subscript of the pointer (finger or stylus) that triggered the call to a process specific to the multi-touch in an Image control.
Then, this subscript can be used by GesturePosX and/or GesturePosY to find out the vertical and/or horizontal position of the corresponding pointer.
Versions 18 and later
iPhone/iPad This function is now available for the iPhone/iPad applications.
New in version 18
iPhone/iPad This function is now available for the iPhone/iPad applications.
iPhone/iPad This function is now available for the iPhone/iPad applications.
Versions 19 and later
WEBDEV - Browser code This function is now available in browser code.
New in version 19
WEBDEV - Browser code This function is now available in browser code.
WEBDEV - Browser code This function is now available in browser code.
Example
// Retrieve the horizontal position of the pointer that triggered
// the call to the "Pressed" process of an Image control
PositionX is int
PositionX = GesturePosX(GestureCurrentPointer())
Syntax
<Result> = GestureCurrentPointer()
<Result>: Integer
Subscript of the pointer (finger or stylus) that triggered the call to a "Pressed" or "Released" process in an Image control. The first pointer in contact with the screen corresponds to the subscript 1.
Note: In the Android simulator or emulator, this number is always equal to 1.
Remarks
Android

Position of several pointers

To manage several pointers on the screen, the device must:
  • include a multi-touch feature
  • operate with version 2.2 (or later) of the Android system.

Limitations

  • Android This function is available on the devices running Android version 2.2 or later (api level 8).
    A fatal error occurs if the function is used with an earlier system version.
    To find out the version of Android system on which the application is run, use SysAndroidVersion.
  • Use condition:
    • This function must be called in the processes of an Image control that triggered the call to the processes for each pointer: "Recall the processes at each finger" option in the "Details" tab of the control description.
    • This function must be called in one of the following processes of control: "Pressed", "Released", "Scroll with finger", "Horizontal and vertical swipe" or "Zoom with finger". Otherwise, the function will always return 1.
  • iPhone/iPad Up to 2 pointers can be supported.
  • WEBDEV - Browser code The browser used must support the multi-touch feature.

Various

  • 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.
Components
WEBDEV - Browser code WDJS.DLL
Android wd230android.jar
Minimum required version
  • Version 17
This page is also available for…
Comments
Click [Add] to post a comment