Home | Sign in | English EN
This content has been translated automatically. Click here to view the French version.
  • Events managed by default
  • Events with procedures
  • Optional events
  • Widget 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 managed by default
WINDEV WINDEV and WINDEV Mobile manage the following events by default (order of appearance in the code editor):
EventRuntime condition
InitializingRun when the window is opened. *
Widgets added by programming must be added in this event (DashAddWidget then DashInitialConfiguration).
Adding a widgetRun once a Widget was added via the popup menu of Dashboard control in edit mode.
Deleting a WidgetRun when hiding a Widget via the popup menu of Dashboard control in edit mode.
  • If this event does not return a value or returns True, the Widget will be hidden.
  • If this event returns False, the Widget will not be hidden.
Moving a WidgetRun once a Widget was moved in the Dashboard control in edit mode.
Resizing a WidgetRun once a Widget was resized in the Dashboard control in edit mode.

(*) By default, the "Initializing" event of each control is run according to the order in which the controls were created in the window. To modify this order of execution:
  1. On the "Window" pane, in the "Order" group, click "Initialization".
  2. In the window displayed, use the arrows on the right to modify the order in which the controls are initialized.
Events with procedures
To simplify the operations performed on Widgets in a Dashboard control, several procedures are proposed in each event. These procedures take in parameter the Widget variable to use. This variable is a Control variable. The Widget can be handled by this variable.
Example: To find tout the Widgets deleted by the user:
PROCÉDURE DeleteWidget(Widget is Control)
Trace("Deletion" + Widget.Caption)
Trace("Deletion" + Widget.SourceWindow)
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,
  • the right mouse button down, up, with double click,
  • the mouse wheel, etc.
See the Optional events for more details.
Widget optional events
Widgets are internal windows displayed in a Dashboard control.
In this case, a specific optional event can be associated with the internal window or page: "Refreshing the Widget".
This event is run when DashDisplay is run.
Minimum version required
  • Version 19
This page is also available for…
Click [Add] to post a comment