PC SOFT

WINDEV的在线文档

  • Overview
  • Assigning one or more controls to one or more planes
  • Selecting the plane displayed in the editor
  • Changing plane by programming
  • Changing plane in a window
  • Changing plane in a report
文档页面当前正在翻译。对于此延迟我们深表歉意。
您可以自愿地帮助我们翻译您想要的文档段落,然后只需通过以下地址与我们联系: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
The planes are used to group the window controls. A plane is a window "layer". Each window can include several planes.

The controls can be positioned on different planes. A single plane can be displayed at a time in the window editor and during the execution of the program.

Each window control can:

  • belong to no plane: it will always be displayed, regardless of the current plane
  • belong to a plane. This control will be displayed when the corresponding plane is enabled (which means visible).
  • 19版本和更高版本
    belong to several planes. This control will be displayed when one of the planes associated with the control is enabled (which means visible).
    19新版本
    belong to several planes. This control will be displayed when one of the planes associated with the control is enabled (which means visible).
    belong to several planes. This control will be displayed when one of the planes associated with the control is enabled (which means visible).
19版本和更高版本
Note: The planes are also available in the reports. The planes in the reports are mainly used to replace the substitution blocks: all you have to do is position the controls on several planes and enable the requested plane when printing.
19新版本
Note: The planes are also available in the reports. The planes in the reports are mainly used to replace the substitution blocks: all you have to do is position the controls on several planes and enable the requested plane when printing.
Note: The planes are also available in the reports. The planes in the reports are mainly used to replace the substitution blocks: all you have to do is position the controls on several planes and enable the requested plane when printing.

18版本和更高版本
WinDevWindows Store apps The planes are now available for the applications in Windows Store apps mode.
18新版本
WinDevWindows Store apps The planes are now available for the applications in Windows Store apps mode.
WinDevWindows Store apps The planes are now available for the applications in Windows Store apps mode.

Assigning one or more controls to one or more planes
To assign one or more controls to one or more planes:
  1. Select the controls.
  2. Select:
    • "Associate with a plane" from the popup menu of the selection.
    • "Associate with a plane" from the popup menu of the control.
  3. In the window that is displayed, choose:
    • "No plane" if the control must be associated with no plane,
    • one of the available planes.
    • 19版本和更高版本
      several planes (to do so, keep the [CTRL] key down when selecting the planes).
      19新版本
      several planes (to do so, keep the [CTRL] key down when selecting the planes).
      several planes (to do so, keep the [CTRL] key down when selecting the planes).
Notes:
  • The number of planes is unlimited. However, the window editor or the report editor may prevent you from selecting the planes greater than 98.
  • A control can also be assigned to a plane from the description window of the control:
    • in the window editor: "Details" tab, "Plane" option.
    • 19版本和更高版本
      in the report editor: "GUI" tab, "Plane" option.
      19新版本
      in the report editor: "GUI" tab, "Plane" option.
      in the report editor: "GUI" tab, "Plane" option.
  • When assigning a control to a plane, the control may not be displayed in the current window or report anymore: the current plane differs from the plane assigned to the control.
  • 19版本和更高版本
    The assignments window lists the planes used then the blank planes. The buttons found at the bottom of this window simplify the move between the different types of planes.
    19新版本
    The assignments window lists the planes used then the blank planes. The buttons found at the bottom of this window simplify the move between the different types of planes.
    The assignments window lists the planes used then the blank planes. The buttons found at the bottom of this window simplify the move between the different types of planes.

Selecting the plane displayed in the editor
To display a specific plane in the editor, you can:
  • In the window editor: select "Display .. Go to plane" and choose the plane to display.In the window editor: in the "Window" pane, in the "Associate" group, expand "Planes". In the window that is opened, all you have to do is choose the plane to display in the "Navigation" section.
  • 19版本和更高版本
    In the report editor: on the "修改" pane, in the "层" group, expand "层". In the window that is opened, all you have to do is choose the plane to display in the "Navigation" section.
    19新版本
    In the report editor: on the "修改" pane, in the "层" group, expand "层". In the window that is opened, all you have to do is choose the plane to display in the "Navigation" section.
    In the report editor: on the "修改" pane, in the "层" group, expand "层". In the window that is opened, all you have to do is choose the plane to display in the "Navigation" section.
  • press [Page up] and [Page down]. These keys are used to display the different planes of the current window or report.
  • enter the plane to display in the status bar of the window editor or report editor.

Changing plane by programming
..层 is used to:
  • find out and change the current plane of a window or report.
  • find out and change the plane associated with a control.

Changing plane in a window

Changing plane in a window can be performed at any time. A button is often used to change plane.

Example:

// Switch to plane 4 for adding orders
WIN_CRM..层=4

The change of plane is immediate: only the controls associated with the plane are displayed.

19版本和更高版本

Changing plane in a report

The change of plane in a report must be done when printing the report. We recommend that you use ..层 in one of the processes of the report, blocks or controls.

// Opening process of the report
// Display the plane 2
我的报表..层=2

The change of plane is immediate: only the controls associated with the plane are printed.

Note: Replacing the substitution blocks by planes:
Until version 18, the substitution blocks were used to replace a block by another one during the print. However, to avoid the print problems, it was recommend to create substitution blocks with the same height as the block to replace.
From version 19, the planes can easily replace a substitution block. To do so, you must:

  • in the editor: position the controls of the substitution block in the requested block and assign them to a plane.
  • by programming: replace the call to 打印替换块 by a call to ..层 in order to display the requested plane.
19新版本

Changing plane in a report

The change of plane in a report must be done when printing the report. We recommend that you use ..层 in one of the processes of the report, blocks or controls.

// Opening process of the report
// Display the plane 2
我的报表..层=2

The change of plane is immediate: only the controls associated with the plane are printed.

Note: Replacing the substitution blocks by planes:
Until version 18, the substitution blocks were used to replace a block by another one during the print. However, to avoid the print problems, it was recommend to create substitution blocks with the same height as the block to replace.
From version 19, the planes can easily replace a substitution block. To do so, you must:

  • in the editor: position the controls of the substitution block in the requested block and assign them to a plane.
  • by programming: replace the call to 打印替换块 by a call to ..层 in order to display the requested plane.

Changing plane in a report

The change of plane in a report must be done when printing the report. We recommend that you use ..层 in one of the processes of the report, blocks or controls.

// Opening process of the report
// Display the plane 2
我的报表..层=2

The change of plane is immediate: only the controls associated with the plane are printed.

Note: Replacing the substitution blocks by planes:
Until version 18, the substitution blocks were used to replace a block by another one during the print. However, to avoid the print problems, it was recommend to create substitution blocks with the same height as the block to replace.
From version 19, the planes can easily replace a substitution block. To do so, you must:

  • in the editor: position the controls of the substitution block in the requested block and assign them to a plane.
  • by programming: replace the call to 打印替换块 by a call to ..层 in order to display the requested plane.