PC SOFT

WINDEV的在线文档

  • Overview of the supercontrol
  • Examples
文档页面当前正在翻译。对于此延迟我们深表歉意。
您可以自愿地帮助我们翻译您想要的文档段落,然后只需通过以下地址与我们联系: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 supercontrol
A supercontrol is an advanced type of control. A supercontrol groups a set of controls for a specific purpose. These controls are independent from the processes of the window or page that hosts them.

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

Benefits of supercontrols: the supercontrols are independent elements that can be easily reused regardless of the window or page where they are used. As they can be included in a dictionary, they can easily be transferred from a project to another one.

Example: These three controls constitute a supercontrol. In this example, the button is used to automatically calculate the end date according to the period chosen in the popup menu of the button.

Two types of users are allowed to handle a supercontrol:

  • The creator of the supercontrol: person who designs the supercontrol as well as its features. For more details, see: Creating a supercontrol.
  • The user of the supercontrol: person who includes the supercontrol in his window (or in his page) and who will be handling it by programming. For more details, see: Including a supercontrol in a window.
A supercontrol can include:
  • All types of controls, with all their characteristics (popup menu for example).
  • Specific procedures. These procedures are local to the supercontrol and they can be used by all the processes associated with the supercontrol or with one of its elements.
  • Variables local to the supercontrol and that can be used by all the processes associated with the supercontrol or with one of its elements.
Note: A supercontrol can be created with a single control: this enables you to define procedures local to this control.

Examples
Several examples of supercontrols are supplied with WinDev/WebDev/WinDev Mobile. These supercontrols can be accessed from the "Wizards, Examples and Components" pane ("Controls .. Supercontrol" or "Controls .. Map").