PC SOFT

WINDEV的在线文档

  • Processes managed by default
  • Associating a local procedure with a supercontrol
  • Optional processes
文档页面当前正在翻译。对于此延迟我们深表歉意。
您可以自愿地帮助我们翻译您想要的文档段落,然后只需通过以下地址与我们联系: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本地访问

Processes associated with the supercontrols

Processes managed by default
WinDev WinDev and WinDev Mobile manage the following processes by default (in the order in which they appear in the code editor):
ProcessRuntime condition
Declaration of global variablesDeclaration code of global variables of the supercontrol. All the types of variables are supported. They can be used in any process associated with the supercontrol or with one of the controls included in the supercontrol.
InitializationRun when opening the window.
EntryRun when the cursor enters a control that is included in the supercontrol
ExitRun when the cursor exits from one of the controls that is included in the supercontrol
Whenever modifiedThis code is not run by default. To run it, use 执行处理 associated with the 执行处理.修改 constant.

Associating a local procedure with a supercontrol
To create a procedure local to the supercontrol:
  1. Display the description of the supercontrol.
  2. Click the "Add" button found below the "Local procedures" control. A new procedure is created.
  3. Click the "Code" button to edit the code of the procedure.
Tip: To create local procedures linked to the supercontrol, you can perform the following operations:
  1. Select your window (or page) and the supercontrol in the "Project explorer" pane.
  2. Click the black arrow found beside the name of the supercontrol in the project explorer. The local procedures appear.
  3. Select "Local procedures". The local procedures displayed are the ones of the supercontrol. You have the ability to add, rename or delete local procedures in the supercontrol.

Optional processes
Several optional processes can be managed.

To manage an optional process, all you have to do is select it in the icon bar of the code window.

You have the ability to manage:

  • the rollover of the control by the mouse,
  • the left mouse button down, up, with a double click,
  • the right mouse button down, up, with double click,
  • the mouse wheel, etc.
另见