- Overview
- Moves and swipes
- Fast scrolling
- Moving rows
- Action during a swipe
Looper: moves and gestures
In a mobile application, several options can be handled with the fingers, by performing specific movements. For the Looper controls, WINDEV Mobile proposes several options used to manage these moves and gestures. These options can be configured in the "Details" tab of the description window of Looper control. Action during a swipe On the Looper controls, an action can be performed during a horizontal swipe of a row (drag the element from right to left or from left to right). You have the ability to perform: - an automatic deletion.
an action by programming.  a customizable swipe.
Automatic deletion If the "Automatic deletion" option is selected, new events are associated with the Looper control: | | Before automatically deleting a row by swipe | This event is run before the automatic deletion of the record displayed in the row. This event is used to run different tests for example. If this event returns False the deletion is not performed. | After automatic deletion of a row by swipe | This event is run after the actual deletion of the record. This event is used, for example, to re-display the data. | | This event is run BEFORE the event "Before automatically deleting a row". If this event returns False, the event "Before automatically deleting a row" is not run and the record is not deleted. |
Remark: Only the data file record linked to the row of the Looper control is deleted. The linked records found in the other data files are not automatically deleted. - Row swipe actions are only available for Looper controls populated programmatically or with in-memory data source.
- Swipe actions are not available for horizontal and multicolumn Looper controls.
- Swipe actions are available in the simulator.
Related Examples:
|
Cross-platform examples (WINDEV Mobile): WM ToDo List
[ + ] This example is a manager of To-Do Lists. The project is using the gestures in the loopers in order to move and delete the lists and tasks. The data is stored in a HFSQL database.
|
|
|
|
|