PC SOFT

WINDEV的在线文档

  • 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)
  • Notes
  • Limitations
  • Applying the skin template of the project
  • Applying a window template to an internal window
  • Displaying the preview of the internal windows at100%
文档页面当前正在翻译。对于此延迟我们深表歉意。
您可以自愿地帮助我们翻译您想要的文档段落,然后只需通过以下地址与我们联系:info@cn.windev.com
产品
WinDevWebDev-服务器代码WebDev-浏览器代码WinDev Mobile报表和查询
平台
WindowsLinuxWindows MobileWindows PhoneWindows Store appsAndroidAndroid Widget iPhone/iPad
语言
JavaPHPAjax用户代码(MCU)外部语言
数据库
HFSQLHFSQL Client/Server存储过程HF 5.5OLE DBODBC本地访问

Overview of the "Internal window" control

Window control

The "Internal Window" control is used to include a window (and its code) in a control found in another window.

At run time, the window to merge ("Internal window" window) will be dynamically merged to 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.

18版本和更高版本
WinDevWindows Store apps This control is now available for the applications in Windows Store apps mode.
18新版本
WinDevWindows Store apps This control is now available for the applications in Windows Store apps mode.
WinDevWindows Store apps This control is now available for the applications in Windows Store apps mode.
20版本和更高版本
WinDevLinux This control is now available for the WinDev applications in Linux.
20新版本
WinDevLinux This control is now available for the WinDev applications in Linux.
WinDevLinux This control is now available for the WinDev applications in Linux.

Creating an internal window and associating it with a control

Creating an internal window

To create an internal window:
  1. Select "File .. New .. Window".Clickamong the quick access buttons.
  2. Click the "Internal window" tab and select "Blank" (select the associated skin template if necessary).Click "Window" in the wheel that is displayed. The wizard for window creation starts automatically.The window for creating a new element is displayed: click "Window" then "Window". The wizard for window creation starts automatically.
  3. Validate to create the window.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 contains no border, no title bar, no status bar and no background image. It is intended to be displayed in an "Internal Window" control.

This type of window is also called "Source window".

Notes:

  • In the "GUI" tab of the description window, you have the ability to specify whether the source window must use the skin template of the target window. To do so, check "Apply the skin template of the project of the host window".
  • A blank internal window can also be created via "File .. New .. Window .. Internal window".A blank internal window can also be created as follows:
    • Clickamong the quick access buttons.
    • In the wheel that is displayed, hover "Window" and click "Internal window".The window for creating a new element is displayed: click "Window" then "Internal window".
    • The internal window is automatically created in the editor.

Creating an "Internal window" control

To create an "Internal window" control:
  1. In the window editor, click(or select "Insert .. Special .. Internal Window control").On the "创建" pane, in the "容器" group, click "内部窗口".
  2. Click the position where the control must be created in the target window. The control appears in creation mode.
To display the characteristics of the control, select "Description" from the popup menu of the control. This enables you to select the internal window that will be displayed in the "Internal Window" control when initializing the target window.

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:
    • Display the popup menu of the selection and select "Refactoring .. Create an internal window from the selection".
    • Select "Control .. Refactoring .. Create an internal window with selection".On the "修改" pane, in the "转换" group, expand "重构和切换" 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, select "File .. Save as an internal window".To create an internal window from the current window, on the "Home" pane, in the "General" tab, expand "Save" and select "Save as an internal window".
  • To create a window from the current internal window, select "File ..Save as window".To create a window from the current internal window, on the "首页" pane, in the "常规" group, expand "保存" and select "Save as a window".

Notes

Limitations

Main menus can be created in the Internal Window controls but they will be disabled.

Applying the skin template of the project

If the internal window is included in a component, the skin template of the host project can be applied to the internal window ("Apply the skin template of the host project (component only)" from the "GUI" tab in the description window of the internal window).

This option is ignored if the internal window is not included in a component.

20版本和更高版本

Applying a window template to an internal window

To apply one or more window templates to an internal window:
  1. Display the internal window in the window editor.
  2. On the "窗口" pane, in the "模型" group, expand "模型" and select "Inherit from a template".
  3. Select the window template to apply.
  4. Validate.
  5. Specify whether the properties of the internal window must be updated from the template. If you answer "Yes", the list of properties to overload is displayed. In this window, you have the ability to select the properties of the internal window to keep. The window template will be automatically overloaded for the properties kept. For all the other characteristics, the internal window will be automatically linked to the template.
  6. Validate.
Note: By default, the size characteristics of the internal window are automatically overloaded.
20新版本

Applying a window template to an internal window

To apply one or more window templates to an internal window:
  1. Display the internal window in the window editor.
  2. On the "窗口" pane, in the "模型" group, expand "模型" and select "Inherit from a template".
  3. Select the window template to apply.
  4. Validate.
  5. Specify whether the properties of the internal window must be updated from the template. If you answer "Yes", the list of properties to overload is displayed. In this window, you have the ability to select the properties of the internal window to keep. The window template will be automatically overloaded for the properties kept. For all the other characteristics, the internal window will be automatically linked to the template.
  6. Validate.
Note: By default, the size characteristics of the internal window are automatically overloaded.

Applying a window template to an internal window

To apply one or more window templates to an internal window:
  1. Display the internal window in the window editor.
  2. On the "窗口" pane, in the "模型" group, expand "模型" and select "Inherit from a template".
  3. Select the window template to apply.
  4. Validate.
  5. Specify whether the properties of the internal window must be updated from the template. If you answer "Yes", the list of properties to overload is displayed. In this window, you have the ability to select the properties of the internal window to keep. The window template will be automatically overloaded for the properties kept. For all the other characteristics, the internal window will be automatically linked to the template.
  6. Validate.
Note: By default, the size characteristics of the internal window are automatically overloaded.

Displaying the preview of the internal windows at100%

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, check "Force the preview of internal windows at 100%" in the edit options of the window editor ("Display .. Options .. Modify the options", "Controls" tab).To display the preview of the internal windows at 100% for the entire project:
  1. On the "显示" pane, click the group icon () of the "选项" group.
  2. In the "Controls" tab of edit options, check "Force the preview of internal window at 100%".
  3. Validate.

To display the preview of an internal window at 100%, check "Always display the preview at 100%" in the "GUI" tab of the description window of the Internal Window control.