|
|
|
|
|
- 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 vice versa
- Remarks
- Limitations
- Applying a window template to an internal window
- Displaying the preview of the internal windows at 100%
The Internal Window control
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. Warning: Do not confuse "Internal Window Field" and "Internal Window": the "Internal Window" field is a type of field and 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: - Click in the quick access buttons.
- When the new element window appears, click "Window" then "Window". The window creation wizard starts automatically.
- 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 in the quick access buttons.
- In the window that 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: - On the "Creation" tab, in the "Containers" group, click "Internal window".
- 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. Creating an internal window from existing controls To create an internal window from existing controls: - Select the controls that must be included in the internal window.
- 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 vice versa - 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".
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: - Open the internal window in the window editor.
- On the "Window" tab, in the "Templates" group, expand "Templates" and select "Inherit from a template".
- Select the window template to apply.
- Validate.
- 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.
- Validate.
Note: 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: - On the "Display" tab, click the dialog box launcher () of the "Options" group.
- In the "Controls" tab of the edit options, check "Set internal window preview zoom to 100%".
- 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:
|
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.
|
|
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...)
|
This page is also available for…
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|