|
|
|
|
- Default events
- Events supported by WINDEV and WINDEV Mobile
- Events supported in WEBDEV
- Optional events
- "Validate with the keyboard" event
- "Select a value in the list of input suggestions" event
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 28"Select a value in the list of input suggestions" event The optional "Select a value in the list of input suggestions" event is executed when the user selects an element from the list of input suggestions. To handle this event more easily, it is associated with a procedure:
PROCÉDURE InputSuggestionSelection(MySelection is AssistedInput)
The variable of type AssistedInput contains the characteristics of the element selected in the input suggestions (text displayed and corresponding stored value). For example, this event allows you to: - get the selected option.
- change the value displayed in the Edit control after the selection is made.
// 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" PROCÉDURE Selection(MySelection is AssistedInput) EDT_PostalCode = MySelection.StoredValue
This page is also available for…
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|