|
|
|
|
|
- Overview
- Moves and swipes
- Fast scrolling
- Moving rows
- Action during a swipe
RepeatString area: movements 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 Looper control description window. 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). It is possible to: - an automatic deletion.
an action programmatically.  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 "Before automatically deleting a row" event. If this event returns False, the "Before automatically deleting a row" event is not run and the record is not deleted. |
Note: Only the record in the data file linked to the line in the RepeatString field 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.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|