PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

Home | Sign in | English US
  • Processes managed by default
  • Optional processes
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadApple WatchUniversal Windows 10 AppWindows Mobile
Others
Stored procedures
Processes associated with the control templates
Processes managed by default
WINDEVWINDEV Mobile WINDEV and WINDEV Mobile manage the following processes for the control templates:
ProcessRuntime condition
Declaration of global variablesDeclaration of variables global to the control template.
This code is run before the declaration code of global variables of host window (window where the control template is included).
InitializationRun when opening the window.
The processes are run in the following order:
  • Initializing the controls of host window
  • Initialization of window
  • Gain of focus
EntryRun when the cursor enters in one of the controls of 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 control template is modified.
Assigning the ..Value propertyRun whenever the Value property is assigned to the control template (direct assignment or assignment performed by ..Value). This code is used to retrieve the parameters passed to the control template for example. See programming the control templates.
Retrieving the ..Value propertyRun whenever retrieving the Value of control template. This code allows the control template to return a value to the window that is hosting 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 "Code" pane, in the "Procedures" group, expand "New" and select "New local procedure").
WEBDEV - Server code WEBDEV manages the following processes for the control templates:
ProcessRuntime condition
Declaring the global variables (server code)Declaration of variables global to the control template.
This code is run before the declaration code of the global variables of the host page (page where the control template is included).
You can, for example, call a local procedure of control template from the declaration code of global variables of host page.
Initialization (server code)Run when opening the page.
The processes are run in the following order:
  • Initializing the controls of host page
  • Initializing the page
  • Gain of focus
Loading (browser code)Browser code run when the control template is displayed in the browser.
Assigning the ..Value property
(Server code)
Run whenever the Value property is assigned to the control template (direct assignment or assignment performed by ..Value). This code is used to retrieve the parameters passed to the control template for example. See programming the control templates.
Retrieving the ..Value property
(Server code)
Run whenever retrieving the Value of control template. This code allows the control template to return a value to the page 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 "Code" pane, in the "Procedures" group, expand "New" 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 code window.
To add an optional process:
  1. Select the requested control.
  2. Display the code window of this control ([F2] key).
  3. Click the link "Add other processes to xxx" found at the end of window code, after the last process.
  4. All the optional processes available for the control are displayed.
  5. Check the optional process to add and validate.
    Note: You have the ability to select several optional processes.
  6. The selected optional process is automatically added into the processes managed by the control
To disable an optional process, perform the same operations to display the list of optional processes. Then, all you have to do is uncheck the optional processes to delete.
Note: If the disabled code contains WLanguage code, this code is automatically deleted.
You have the ability to manage:
  • the control rollover with 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 Optional processes for more details.
See also
Minimum required version
  • Version 12
This page is also available for…
Comments
Click [Add] to post a comment