|
- Events managed by default
- Optional events
- Overview
- Specific optional events: Pull to refresh
- Specific optional event: Application of light/dark theme
Events associated with internal windows
Events managed by default Versions 16 and later New in version 16 Versions 17 and later New in version 17 Versions 20 and later New in version 20Caution: Do not confuse "Internal Window control" and "Internal window": the "Internal window control" is a type of control while the "Internal window" is a type of window. Versions 17 and laterWINDEV and WINDEV Mobile manage the following events by default for the "Internal Window" controls: | | Event | Runtime condition |
---|
Selection by swipe | Internal window with browse by swipe. Run once the new internal window was displayed and loaded. | After loading the internal window | Run when the internal window is changed by ChangeSourceWindow. This event is run after the "Global declarations" and "Initializing" events of the new internal window. This event allows you, for example, to initialize controls or to restore values in the internal window. | Before unloading the internal window | Run when the internal window is changed by ChangeSourceWindow. This event is run before the closing event of the initial internal window. This event is used, for example, to save the values present in the internal window. |
New in version 17WINDEV and WINDEV Mobile manage the following events by default for the "Internal Window" controls: | | Event | Runtime condition |
---|
Selection by swipe | Internal window with browse by swipe. Run once the new internal window was displayed and loaded. | After loading the internal window | Run when the internal window is changed by ChangeSourceWindow. This event is run after the "Global declarations" and "Initializing" events of the new internal window. This event allows you, for example, to initialize controls or to restore values in the internal window. | Before unloading the internal window | Run when the internal window is changed by ChangeSourceWindow. This event is run before the closing event of the initial internal window. This event is used, for example, to save the values present in the internal window. |
WINDEV and WINDEV Mobile manage the following events by default for the "Internal Window" controls:
| | Event | Runtime condition |
---|
Selection by swipe | Internal window with browse by swipe. Run once the new internal window was displayed and loaded. | After loading the internal window | Run when the internal window is changed by ChangeSourceWindow. This event is run after the "Global declarations" and "Initializing" events of the new internal window. This event allows you, for example, to initialize controls or to restore values in the internal window. | Before unloading the internal window | Run when the internal window is changed by ChangeSourceWindow. This event is run before the closing event of the initial internal window. This event is used, for example, to save the values present in the internal window. |
WINDEV and WINDEV Mobile manage the following events by default for the Internal Windows: | | Event | Runtime condition |
---|
Declaration of global variables | Declaring the variables global to the window. This is the first code run when opening the window. This code is run before the declaration code of the global variables of the host window (window in which the internal window is included). You can, for example, call a procedure of the internal window from the declaration code of global variables of the host window. | End of initialization | Run when the window is opened. The events are run in the following order:- Initializing the window controls
- Initializing the window
- Gain of focus
| Closing | Run when closing the window. Remark: Resuming the input in one of the window controls in this code prevents from closing the window. | Versions 20 and later New in version 20 | Used to group the code for updating the window controls: content of controls, state (visible, grayed, etc.), caption to refresh, etc. This event can receive parameters. Simply declare a procedure in the event. For example:
// Request for refreshing the display PROCEDURE AskForRefresh(RefreshType is boolean)
This event is started upon request by the following functions: When these functions are called, you can specify the value of the parameters expected by the event. | Entry | Optional event: Run when the cursor enters in the Internal Window control. | Exit | Optional event: Run when changing control (when going from the Internal Window control to another control of the window). | Whenever modified | Run whenever the control content is modified | Assign the Value property | Executed each time the Property Value is assigned to the Internal Window (directly or with the Property Value). This code is used to retrieve the parameters passed to the internal window for example. | Retrieve Value property | Executed each time the Property Value of the internal window is retrieved. This code allows the internal window to return a value to the window that hosts the Internal Window control. |
Overview Several optional events can be managed.
To add an optional event: - Select the requested control.
- Display the code window of this control (F2 key).
- Click the link "Add other events to xxx" at the bottom of the window code, after the last event.
- All the optional events available for the control are displayed.
- Check the optional event to add and validate.
Remark: You can select several optional events. - 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.
Versions 20 and later New in version 20 Versions 25 and later New in version 25
This page is also available for…
|
|
|
| |
| Click [Add] to post a comment |
|
| |
|
| |
| |
| |
| |
| |
| |
| | |
| |