Help / Developing an application or site / Controls, windows and pages / Controls: Available types / Image control
  • Overview
  • Multi-touch: Specific WLanguage functions
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WindowsLinuxPHPWEBDEV - Browser code
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac CatalystUniversal Windows 10 App
Stored procedures
A "multi-touch" feature is a technique allowing the user to interact with a device via several contact points (the fingers are used in most cases).
One of the most common applications of the multi-touch feature is used to handle images. The display size on a phone being reduced, it is often necessary to perform a zoom and/or to move in an image.
This technology allows you to zoom images with a pinch gesture.
WINDEV Mobile allows you to manage the multi-touch in the Android and iPhone/iPad applications via:
Multi-touch: Specific WLanguage functions
Several WLanguage functions can be used to manage the multi-touch in the following processes of controls:
  • Pressed/Left button down (optional process)
  • Released/Left button up (optional process)
  • Tap/Click
  • Double tap/Double click with left button (optional process)
  • Move (optional process).
These functions are:
GestureCurrentPointerReturns the pointer index (finger or stylus) that triggered the call to a process specific to the multi-touch feature in an Image control.
GestureNbPointerReturns the number of pointers in contact with the screen.
GesturePosXReturns the horizontal position of the pointer (finger or stylus).
GesturePosYReturns the vertical position of the pointer (finger or stylus).
Related Examples:
WM System Cross-platform examples (WINDEV Mobile): WM System
[ + ] This application is an example of some of the features of WINDEV Mobile available for Android/iOS.
The following system functions are used:
- Multimedia control
- Brightness
- Volume
- Wi-Fi
- Bluetooth
- Toast
- Compass
- Accelerometer
- Camera control
- Vibration
- Notifications
- Drawing functions
- Internet
Minimum version required
  • Version 17
This page is also available for…
Click [Add] to post a comment

Last update: 06/22/2023

Send a report | Local help