ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / Developing for iOS (iPhone / iPad)
  • 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
  • Remarks
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
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.
Remarks:
  • This type of window is available for the iPad applications only. If "Window with arrow" is selected for an iPhone application, the window will not be maximized and will have no arrow.
  • The window with arrow uses 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 in the quick access buttons.
    • The new element window appears: 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. Open the window description (select "Description" in the context 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.
Remark: Changing the title through programming (Title) is only possible in the "Global declarations" event of the window.

Changing a maximized window into window with arrow

Transforming a maximized window into window with arrow:
  1. Open the window description (select "Description" in the context menu).
  2. In the "Style" tab:
    • Select "Non-maximized/Clipped window".
    • In the parameters, select:
      • "Window with arrow".
      • "With title bar" to automatically insert a title bar 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 Button control.
    • On the "General" tab, in the "Action" area, select the window with arrow to open.
  • Through programming, use OpenChild in the click code of the button.
    Remark: 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.
  • when the user clicks outside the window. In this case, the "Close" event of the window is executed.

Remarks

  • You have the ability to pass parameters to a window with arrow. For more details, see Window with parameters.
  • The window with arrow can return a value that will be retrieved in the main window (in the "Close a child window" event). For more details, see the help about Close.
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 version required
  • Version 18
Comments
Click [Add] to post a comment

Last update: 06/26/2023

Send a report | Local help