• Processes managed by default
  • Optional processes
WinDevWebDev-服务器代码WebDev-浏览器代码WinDev Mobile报表和查询
WindowsLinuxWindows MobileWindows PhoneWindows Store appsAndroidAndroid Widget iPhone/iPad
HFSQLHFSQL Client/Server存储过程HF 5.5OLE DBODBC本地访问

Processes associated with the control templates

Processes managed by default
WinDev WinDev and WinDev Mobile manage the following processes by default for the control templates:
ProcessRuntime condition
Declaration of global variablesDeclaration of the variables global to the control template.
This code is run before the declaration code of the global variables of the host window (window where the control template is included).
You can, for example, call a local procedure of the control template from the declaration code of the global variables of the host window.
InitializationRun when the window is opened.
The processes are run in the following order:
  • Initializing the controls of the host window
  • Initialization of the window
  • Gain of focus
EntryRun when the cursor enters in one of the controls of the control template.
ExitRun when changing control (going from a control found in the control template to another window control).
Whenever modifiedRun whenever the content of the control template is modified.
Assign the ..值 propertyRun whenever the Value property is assigned to the control template (direct assignment or assignment performed by ..值). This code is used to retrieve the parameters passed to the control template for example. See programming the control templates.
Retrieving the ..值 propertyRun whenever retrieving the Value of the control template. This code allows the control template to return a value to the window that hosts the Control Template control. See programming the control templates.

Note: The control templates can have their own local procedures. These local procedures can be created:
  • from the "Project explorer" pane (select the control template then "Local procedures", "New local procedure" from the popup menu).
  • from the code editor ("Insert .. New local procedure").from the code editor (on the "代码" pane, in the "过程" group, expand "新建" and select "New local procedure").

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, ...
See the Optional processes for more details.