Home | Sign in | English UK
  • Events managed by default
  • Optional events
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WindowsLinuxPHPWEBDEV - Browser code
AndroidAndroid Widget iPhone/iPadApple WatchUniversal Windows 10 AppWindows Mobile
Stored procedures
Events associated with control templates
Events managed by default
WEBDEV - Server code WEBDEV manages the following events for control templates:
EventRuntime condition
Declaring the global variables (server code)Declaration of variables global to the control template.
This event is run before the "Global declarations" event of the host page (page in which the control template is integrated).
You can, for example, call a local procedure of control template from the "Global declarations" event of event host page.
Initialization (server code)Run when opening the page.
The events 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.

Remark: 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 (on the "Code" pane, in the "Procedures" group, expand "New" and select "New local procedure").
Optional events
Several optional events can be managed.
To add an optional event:
  1. Select the requested control.
  2. Display the code window of this control (F2 key).
  3. Click the link "Add other events to xxx" at the bottom of the window code, after the last event.
  4. All the optional events available for the control are displayed.
  5. Check the optional event to add and validate.
    Remark: You can select several optional events.
  6. The selected optional event is automatically added to the events managed by the control.
To disable an optional event, simply perform the same operations to display the list of optional events. Then simply uncheck the optional events to delete.
Remark: If the disabled code contains WLanguage code, this code is automatically deleted.
You can manage, for example:
  • the mouse hover over the control,
  • left mouse button down, up, with a double click,
  • right mouse button down, up, with double click,
  • the mouse wheel, etc.
See Optional events for more details.
See also
Minimum version required
  • Version 12
This page is also available for…
Click [Add] to post a comment