PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

Home | Sign in | English US
  • Overview
  • Creating a window with arrow
  • Creating a window with arrow
  • Title bar
  • Changing a maximized window into window with arrow
  • Programming a window with arrow
  • Opening a window with arrow
  • Closing a window with arrow
  • Notes
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadApple WatchUniversal Windows 10 AppWindows Mobile
Others
Stored procedures
Overview
The principle of windows with arrow is straightforward: when the user clicks a button, the window will be displayed against the calling button with a direction arrow between the button and the window.
Notes:
  • This type of window is available for the iPad applications only. If "Window with arrow" is selected for an iPhone application, the window will be maximized.
  • The window with arrow is using the system style: the border of the window and the drawing of the arrow are supplied by the iOS system.
Creating a window with arrow

Creating a window with arrow

To create a window with arrow:
  1. Create a new window:
    • Click among the quick access buttons.
    • Click "Window" in the wheel that is displayed. The window for creating a new element is displayed: click "Window" then "Window".
    • In the wizard for window creation, select "Non-maximized blank with arrow" and validate.
  2. The window with arrow is displayed in the editor. The border and the arrow are displayed in the editor but they cannot be modified. On the contrary, the size of the window can be modified.

Title bar

By default, the created window with arrow contains no title bar.
To display a title bar:
  1. Display the description of the window ("Description" from the popup menu).
  2. In the "Style" tab, check "With title bar".
  3. Validate.
The content displayed in the title bar corresponds to the title of the window entered in the "General" tab of the description window of the window with arrow.
Note: The change of title by programming (..Title) can only be performed in the declaration process of global variables of the window.

Changing a maximized window into window with arrow

Transforming a maximized window into window with arrow:
  1. Display the description of the window ("Description" from the popup menu).
  2. In the "Style" tab:
    • Select "Non-maximized" window.
    • In the parameters, select:
      • "Window with arrow".
      • "With title bar" in order for a title bar to be automatically inserted into the window.
  3. Validate.
Programming a window with arrow

Opening a window with arrow

To open a window with arrow from a button of the application:
  • In the editor, use the "Open" quick action associated with the button.
    • Display the description window of the Button control.
    • On the "General" tab, in the "Action" area, select the window with arrow to open.
  • By programming, use OpenChild in the click code of the button.
    Note: You cannot call OpenChild several times successively from the parent window. On the contrary, a parent window can open a child window that can open another child window.

Closing a window with arrow

A window with arrow can be closed:
  • via a button that contains Close.
  • during a click performed by the user outside the window. In this case, the closing process of the window is run.

Notes

  • You have the ability to pass parameters to a window with arrow. See Window with parameters for more details.
  • The window with arrow can return a value that will be retrieved in the main window (in the "Closing process of a child window"). See the help about Close for more details.
Related Examples:
WM Poll Cross-platform examples (WINDEV Mobile): WM Poll
[ + ] This example is used to manage and view polls.

It is a multi-platform example for iOS and Android.
The iOS generation and the Android generation use the same code and the same windows.

Features of the example:
The section that operates on the phone (iPhone or Android phone) is used to save the answers to the polls.
The section that operates on a tablet (iPad or Android tablet) is used to manage the polls: create and delete polls, modify polls (the questions and the answers) and to view the answer statistics.

The results are stored in a HFSQL database
Minimum required version
  • Version 18
Comments
Click [Add] to post a comment