PC SOFT

WINDEV的在线文档

  • Overview
  • Creating a group of controls
  • Viewing the controls of a group
  • Assigning a control to a group
  • Modifying the name of a group
文档页面当前正在翻译。对于此延迟我们深表歉意。
您可以自愿地帮助我们翻译您想要的文档段落,然后只需通过以下地址与我们联系: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
A group of controls is a set of controls grouped together in order for their characteristics (their visible status for example) to be modified (or checked) in a single operation by programming. A menu option can also be associated with a group of controls.

In the window editor, page editor or report editor, all the controls of all the groups are displayed: therefore, some controls may be overlaid.

The same control can be associated with several groups.

Example: To make several controls invisible, all you have to do is make the group invisible. In a health-care form for example, some controls may relate to men while others may relate to women. Grouping the related controls together enables you to make them visible or invisible according to the gender of the user.

Note: For the MDI windows, a MDI window can be associated with a group. See Managing the menu options in the MDI windows for more details.

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

Creating a group of controls
To create a group of controls:
  1. Enable "Control .. Group .. Edit".
    Note: In the report editor, the option is "Control .. Group of controls .. Edit".
  2. Click the "New" button (or "+" in a report). A new group is created.
  3. Modify the name of the group if necessary.
  4. Validate.
To create a group of controls:
  1. Edit the groups of controls:
    • WinDev On the "窗口" pane, in the "Edit" group, expand "组" and select "Edit".
    • On the report editor, on the "修改" pane, in the "组" group, expand "组" and select "Edit".
  2. Click the "New" button (or "+" in a report). A new group is created.
  3. Modify the name of the group if necessary.
  4. Validate.

Viewing the controls of a group
To view the list of controls found in a group:
  1. Enable "Control .. Group .. Edit".
    Note: In the report editor, the option is "Control .. Group of controls .. Edit".
  2. Select the requested group of controls.
    The list of controls found in the selected group is displayed in the list on the right.
To view the list of controls found in a group:
  1. Edit the groups of controls:
    • WinDev On the "窗口" pane, in the "Edit" group, expand "组" and select "Edit".
    • On the report editor, on the "修改" pane, in the "组" group, expand "组" and select "Edit".
  2. Select the requested group of controls.
  3. The list of controls found in the selected group is displayed in the list on the right.

Assigning a control to a group
To assign a control to a group:
  • specify the name of the group during the control description ("Details" tab or "GUI" tab).
  • select the controls and select "Group .. Associate the selection" from the popup menu. Choose the name of the group or create a new group.

Modifying the name of a group
To modify the name of a group:
  1. Enable "Control .. Group .. Edit".
    Note: In the report editor, the option is "Control .. Group of controls .. Edit".
  2. Click the name of the group, enter the new name for the group and validate.
To modify the name of a group:
  1. Edit the groups of controls:
    • WinDev On the "窗口" pane, in the "Edit" group, expand "组" and select "Edit".
    • On the report editor, on the "修改" pane, in the "组" group, expand "组" and select "Edit".
  2. Click the name of the group, enter the new name for the group and validate.