ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / Developing an application or website / Controls, windows and pages / Controls: Available types / Internal Window control
  • Overview of the "Internal window" control
  • Window control
  • Creating an internal window and associating it with a control
  • Creating an internal window
  • Creating an "Internal Window" control
  • Creating an internal window from existing controls
  • Creating an internal window from a window (and conversely)
  • Remarks
  • Limitations
  • Applying a window template to an internal window
  • Displaying the preview of the internal windows at 100%
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 of the "Internal window" control

Window control

The "Internal Window" control is used to include a window (and its code) in a control of another window.
At runtime, the internal window will be dynamically merged with the host window.
The "Internal Window" control is used to dynamically share the same interface section between one or more applications. The window to merge (internal window) can also come from a component.
Caution: Do not confuse "Internal Window control" and "Internal window": the "Internal window" control is a type of control while the "Internal window" is a type of window.
Creating an internal window and associating it with a control

Creating an internal window

To create an internal window:
  1. Click New in the quick access buttons.
  2. The new element window appears: click "Window" then "Window". The window creation wizard starts automatically.
  3. Click the "Internal window" tab and select "Blank" (select the associated skin template if necessary). Validate to create the window.
An internal window corresponds to a specific type of window. The internal window doesn't have any borders, title bar, status bar, or background image. It is intended to be displayed in an Internal window control inside a host window.
Remarks:
  • In the "UI" tab of the description window, you can specify whether the internal window should use the skin template of the host window. To do so, simply check the option "Apply the skin template of the host window".
  • A blank internal window can also be created as follows:
    • Click New in the quick access buttons.
    • The new element window appears: click "Window" then "Internal window".
    • The internal window is automatically created in the editor.
  • If the internal window is intended for different platforms, in portrait or landscape mode, you can define several layouts. For more details, see Managing layouts.

Creating an "Internal Window" control

To create an "Internal Window" control:
  1. On the "Creation" tab, in the "Containers" group, click "Internal window".
  2. Click at the desired location in the host window to create the control. The control appears in the editor.
To view the characteristics of the control, select "Description" in the context menu. This allows you to select the internal window that will be displayed in the Internal Window control when the host window is initialized.
AndroidiPhone/iPad You can scroll the internal windows in an Internal Window control with a simple touch gesture. For more details, see Changing the content of an internal window with a touch gesture.

Creating an internal window from existing controls

To create an internal window from existing controls:
  1. Select the controls that must be included in the internal window.
  2. Use one of the following methods:
    • Open the context menu of the selection and select "Refactoring .. Create an internal window from the selection".
    • On the "Modification" tab, in the "Transformations" group, expand "Refactoring and swapping" and select "Create an internal window from the selection".
The Internal Window control and the internal window are automatically created. The internal window is automatically associated with the control.

Creating an internal window from a window (and conversely)

  • To create an internal window from the current window, go to the "Home" tab, "General" group, expand "Save" and select "Save as an internal window".
  • To create a window from the current internal window, go to the "Home" tab, "General" group, expand "Save" and select "Save as a window".
Remarks

Limitations

Main menus can be created in internal window controls, but they will be disabled.

Applying a window template to an internal window

To apply one or more window templates to an internal window:
  1. Open the internal window in the window editor.
  2. On the "Window" tab, in the "Templates" group, expand "Templates" and select "Inherit from a template".
  3. Select the window template to apply.
  4. Validate.
  5. Specify whether the properties of the internal window should be updated from the template. If you answer "Yes", the list of properties to override is displayed. You can select the properties of the internal window you want to keep. For each selected property, the values from the template will be overridden with the values from the window. For all the other characteristics, the internal window will be automatically linked to the template.
  6. Validate.
Remark: By default, the size characteristics of the internal window are automatically overridden.

Displaying the preview of the internal windows at 100%

By default, the internal windows displayed in the "Internal Window" controls are minimized in the editor.
To display the preview of the internal windows at 100% for the entire project:
  1. On the "Display" tab, click the dialog box launcher (Dialog box launcher) of the "Options" group.
  2. In the "Controls" tab of the edit options, check "Force preview of internal windows at 100%".
  3. Validate.
To display the preview of an internal window at 100%, check "Always display the preview at 100%" in the "UI" tab of the description window of the Internal Window control.
Related Examples:
WD Explorer Bar Sample components (WINDEV): WD Explorer Bar
[ + ] The WD Explorer Bar component is used to manage an address bar similar to the address bar of the explorer found in Windows Vista.
This address bar (also called 'Explorer Breadcrumb') is used to easily navigate in a treeview.
You have the ability to add elements by programming, like a TreeView control.
You also have the ability to fill the address bar via a TreeView control, and even from one or more HFSQL data files.
The navigation in the bar is automatically managed by the component via an internal window.
You also have the ability to branch the call to a WLanguage user procedure when an element is clicked.
WD FTP File Transfer Complete examples (WINDEV): WD FTP File Transfer
[ + ] WD FTP file transfer

This example is a full FTP client allowing you to store several FTP servers. Then, you have the ability to perform multi-file transfers from the local computer to the server or from the FTP server to the local computer. To do so, we are using the standard functions of WLanguage (FTPConnect, etc...)
Minimum version required
  • Version 9
This page is also available for…
Comments
Exemplo com Fonte
https://repository.windev.com/resource.awp?file_id=281474976711257;trabalhando-com-janelas-internas-working-with-internal-windows-posicionando-centro-fechando-usando-indirection
Boller
18 Nov. 2021

Last update: 09/06/2023

Send a report | Local help