- How to propose sliding windows?
- Creating internal windows
- Defining the sliding windows associated with a window
- Opening a sliding window via the Action Bar
Sliding window (sliding menu)
The sliding windows (also called sliding menus) are often used in the mobile applications.
The characteristics for using this type of window are as follows:
- The sliding window can appear from the left or from the right of screen.
- The sliding window can be partially displayed above the previous window or it can partially shift this window.
A typical use for this type of window is the display of a list of choices or the configuration of an application.
WINDEV Mobile allows you to display this type of window:
Caution: Sliding windows can only be used with maximized windows.
How to propose sliding windows?
Creating internal windows
The sliding windows are internal windows.
This internal window has the following characteristics:
Defining the sliding windows associated with a window
To define the sliding windows associated with a window:
- Open the "Details" tab in the description window of main window.
- Select the internal windows that will be displayed as sliding windows:
- In the "Left sliding window" (or "Right sliding window") area, specify:
- the internal window to display. The different internal windows of the application are proposed when expanding the list.
- the width of internal window.
The width of sliding window can correspond to:
- the width of internal window. In this case, leave the "Width" control empty.
- a percentage of the main window. In this case, the anchors defined in the internal window will be applied. No horizontal scrollbar will be displayed.
- The height is fixed by the height of the internal window. A vertical scrollbar will be displayed if the height exceeds the height of the screen.
- You have the ability to use WinUsefulSize to define the useful size of the sliding window.
- the display mode of the internal window:
- If "Swipe" is checked, the sliding window will automatically appear during a user action.
- If "Swipe" is not checked, the sliding window will be displayed:
- through programming (WinSlidingVisible),
- by the action bar.
- the opening effect of sliding windows. Three modes are available:
- Cover: the sliding window covers the content of the main window.
The Action Bar of window is also covered.
- Push: the sliding window pushes the content of the main window,
- Uncover: the sliding window reveals the content of the main window.
In any case, the main window remains inaccessible. A click on the main window will close the sliding window.
Opening a sliding window via the Action Bar
When a window contains an Action Bar and is associated with a sliding window, clicking the icon of the Action Bar opens the sliding window.
Cross-platform examples (WINDEV Mobile): WM System
Cross-platform examples (WINDEV Mobile): WM FTP Client
Cross-platform examples (WINDEV Mobile): WM Poll