- Default events
- Events managed by WEBDEV
- Optional events
- Event "Selection of a value in the assisted input list".
Events associated with Edit controls
Several optional events are supported.
To add an optional event: - Select the desired 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 the following aspects, for example: - the mouse hover over the control,
- left mouse button down, up, double click,
- right mouse button down, up, double click,
- the mouse wheel, etc.
New in version 28Event "Selection of a value in the assisted input list". The optional event "Selection of a value in the assisted input list" corresponds to the event that will be executed when the user selects an item in the assisted input list. To simplify its handling, this event is associated with an Procedure:
PROCÉDURE SélectionSaisieAssistée(MaSélection is AssistedInput)
The Variable of type AssistedInput contains the characteristics of the row selected in the assisted entry (Label displayed and corresponding stored value). This event allows for example: - to know the selected option.
- to change the value displayed in the edit control after the selection.
// Add a suggestion _AutocompleteSuggestion is AssistedInput _AutocompleteSuggestion.Caption = "Alpharetta, GA 30022" _AutocompleteSuggestion.StoredValue = 30022 AssistedInputAdd(EDT_PostalCode, _AutocompleteSuggestion) // -- Event "Select a value in the list of input suggestions" PROCEDURE Selection(MySelection is AssistedInput) EDT_PostalCode = MySelection.StoredValue
This page is also available for…
|
|
|
|