PC SOFT

FORUMS PROFESSIONNELS
WINDEVWEBDEV et WINDEV Mobile

Accueil → WINDEV 2024 → autosuggest
autosuggest
Débuté par joe, 14 aoû. 2017 12:31 - 3 réponses
Membre enregistré
4 messages
Popularité : +1 (1 vote)
Posté le 14 août 2017 - 12:31
I want to auto suggest in the RTF control so that not the whole word needs to be typed. The words need to be taken from a dictionary . How can I do it ?
Posté le 14 août 2017 - 15:08
Hi Joe,

one possible way:
- the code should be in the 'at each modification' of the field
- you should compare the previous version of the content (that you store
somewhere) with the new one to find out what the user typed
- when you have enough information (by example 3 new chars), you should
either do the autocomplete (by replacing the 3 chars by the whole word)
or present all the choices in a list THEN do the replace

Best regards

--
Fabrice Harari
International WinDev, WebDev and WinDev mobile Consulting

Ready for you: WXShowroom.com, WXReplication (open source) and now WXEDM
(open source)

More information on http://www.fabriceharari.com


Le 8/14/2017 à 4:31 AM, joe a écrit :
I want to auto suggest in the RTF control so that not the whole word
needs to be typed. The words need to be taken from a dictionary . How
can I do it ?
Posté le 16 août 2017 - 06:58
Fabrice Harari wrote:
Hi Joe,

one possible way:
- the code should be in the 'at each modification' of the field
- you should compare the previous version of the content (that you store
somewhere) with the new one to find out what the user typed
- when you have enough information (by example 3 new chars), you should
either do the autocomplete (by replacing the 3 chars by the whole word)
or present all the choices in a list THEN do the replace

Best regards

--
Fabrice Harari
International WinDev, WebDev and WinDev mobile Consulting

Ready for you: WXShowroom.com, WXReplication (open source) and now WXEDM
(open source)

More information on http://www.fabriceharari.com


Le 8/14/2017 à 4:31 AM, joe a écrit :
I want to auto suggest in the RTF control so that not the whole word
needs to be typed. The words need to be taken from a dictionary . How
can I do it ?
Posté le 16 août 2017 - 07:02
Yeah this is what I am looking for but how can I achieve it?
How can I take words from OpenOffice Dictionary?
How can I use the same in a RTF with multiple words ie how can I make it search for the last three words typed after space .