PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

Home | Sign in | English US
  • Overview
  • Gesture variable
  • Example
  • Retrieving gesture information
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
Overview
The Gesture variable is used to retrieve the gesture parameters (swipe): direction, speed, distance, ...
This variable can be used:
  • in the swipe process of looper elements, to find out the swipe direction.
  • in the multitouch processes (zoom, scroll and swipe), to avoid declaring parameters in the processes.
Versions 19 and later
WEBDEV - Browser code The Gesture variable is now available in browser code.
New in version 19
WEBDEV - Browser code The Gesture variable is now available in browser code.
WEBDEV - Browser code The Gesture variable is now available in browser code.
Gesture variable
The Gesture variable includes the following elements:
Versions 22 and later
iPhone/iPad Gesture.Azimuth
New in version 22
iPhone/iPad Gesture.Azimuth
iPhone/iPad Gesture.Azimuth
Real
Azimuth angle (expressed in degrees) of an Apple Pencil in relation to the mark of current control.
This variable is filled in the "Pressed/Left button down" process.
Android Gesture.Direction
Integer constant

Direction of the gesture. Can correspond to one of the following constants:
  • BottomToTop: Swipe from bottom to top.
  • RightToLeft: Swipe from right to left.
  • LeftToRight: Swipe from left to right.
  • TopToBottom: Swipe from top to bottom.
This variable is filled in the Scroll and Swipe processes.
Android Gesture.Distance
For a scroll: value of the move (in pixels) in the direction specified by Gesture.Direction.
For a zoom with finger: value of the spacing (in pixels) between two contact points.
This variable is filled in the Scroll and Zoom with finger processes.
Versions 22 and later
iPhone/iPad Gesture.AltitudeAngle
New in version 22
iPhone/iPad Gesture.AltitudeAngle
iPhone/iPad Gesture.AltitudeAngle
Real
Angle (expressed in degrees) corresponding to the inclination of an Apple Pencil in relation to the tablet plan.
This variable is filled in the "Pressed/Left button down" process.
Versions 21 and later
iPhone/iPad Gesture.Force
New in version 21
iPhone/iPad Gesture.Force
iPhone/iPad Gesture.Force
Real
Pressure during a press.
This pressure can take a value included between 0,0 and 1,0.
This variable is filled in the "Pressed/Left button down" process.
Versions 21 and later
iPhone/iPad Gesture.MaximumForce
New in version 21
iPhone/iPad Gesture.MaximumForce
iPhone/iPad Gesture.MaximumForce
Real
Maximum pressure during a press.
This pressure can take a value included between 0,0 and 1,0.
This variable is filled in the "Pressed/Left button down" process.
Android Gesture.Speed
Integer
Speed of the move in the direction specified by Gesture.Direction.
This speed is expressed in pixels per second.
This variable is filled in the Swipe processes.
Example

Retrieving gesture information

// Scroll with Finger process of IMG_Image
SWITCH Gesture.Direction
CASE RightToLeft: RADIO_Direction = 1
CASE LeftToRight: RADIO_Direction = 2
CASE TopToBottom: RADIO_Direction = 3
CASE BottomToTop: RADIO_Direction = 4
END
EDT_Speed = Gesture.Speed
EDT_Distance = Gesture.Distance
Minimum required version
  • Version 18
This page is also available for…
Comments
Click [Add] to post a comment