ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / WLanguage / WLanguage properties / Properties associated with windows, pages and controls
  • Swipe gesture in an internal window
  • Swipe gesture in a Looper control
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac CatalystUniversal Windows 10 App
Others
Stored procedures
The SwipeEnabled property enables or disables the swipe gesture support:
  • on an Internal Window control.
  • on a row in a Looper control.
Example
IWC_InternalWin.SwipeEnabled = False
LOOP_Product[2].SwipeEnabled = False
Syntax

Determining if the swipe gesture is enabled or disabled Hide the details

<Result> = <Control used>.SwipeEnabled
<Result>: Boolean
  • True if the swipe gesture is enabled,
  • False otherwise.
<Control used>: Control name
  • Name of the Internal Window control used.
  • Row of the Looper control used. In this case, the following syntax is used:
    Looper_control[Row_Number]

Changing the swipe gesture mode Hide the details

<Control used>.SwipeEnabled = <Swipe management>
<Control used>: Control name
  • Name of the Internal Window control used.
  • Row of the Looper control used. In this case, the following syntax is used:
    Looper_control[Row_Number]
<Swipe management>: Boolean
  • True if the swipe gesture is enabled,
  • False otherwise.
Remarks

Swipe gesture in an internal window

By default, the swipe gesture is enabled:
  • when the "Allow swipe to change content" option is enabled on an Internal Window control ("UI" tab in the control description window),
  • when more than one internal window was added with IWListAdd.
In this case, the user can change the internal window with a simple touch gesture.
The SwipeEnabled property is used to disable then re-enable swipe gesture support. This allows you to temporarily disable the swipe gesture in order to perform a specific action.

Swipe gesture in a Looper control

The swipe gesture is enabled by default in a Looper control when:
  • the option "Row swipe: Customizable swipe" is enabled ("Details" tab in the control description window),
  • an internal window has been defined for the custom swipe.
In this case, the user can open the internal window with a simple swipe gesture on the row of the Looper control.
The SwipeEnabled property is used to disable then re-enable swipe gesture support. This allows you to temporarily disable the swipe gesture in order to perform a specific action.
Minimum version required
  • Version 21
Comments
Click [Add] to post a comment

Last update: 07/17/2023

Send a report | Local help