AYUDA EN LÍNEA
 WINDEVWEBDEV Y WINDEV MOBILE

Este contenido se ha traducido automáticamente.  Haga clic aquí  para ver la versión en inglés.
Ayuda / WLanguage / Funciones WLanguage / Funciones específicas para móviles / Funciones Multi-Touch
  • Position of several pointers
  • Limitations
  • Miscellaneous
WINDEV
WindowsLinuxJavaReportes y ConsultasCódigo de Usuario (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Código Navegador
WINDEV Mobile
AndroidWidget Android iPhone/iPadIOS WidgetApple WatchMac Catalyst
Otros
Procedimientos almacenados
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.
Ejemplo
// Retrieve the horizontal position of the pointer that triggered
// the call to the "Pressed" event associated to an Image control
PositionX is int
PositionX = GesturePosX(GestureCurrentPointer())
Sintaxis
<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.
Observaciones
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 "Volver a llamar a los procesos en cada pulsación (varios punteros)" 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 - Código Navegador 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.
Componente: WDJS.DLL
Versión mínima requerida
  • Versión 17
Esta página también está disponible para…
Comentarios
Haga clic en [Agregar] para publicar un comentario

Última modificación: 27/03/2025

Señalar un error o enviar una sugerencia | Ayuda local