I have written a component allowing easy implementation of typeahead functions 
for variables or fields.

The idea is to create an array with possible values ("suggestions") and to 
place a method (the only shared method of the component) in the on after edit 
event of the variable or field. To this method, you pass the object name of the 
variable or field and a pointer to the array with the values.

As soon as the user starts to type, the component displays a typeahead dialog, 
a bit similar as the one we 4D programmers are used to work with when writing 
code in the 4D method editor.

The component is free and open source, currently 4D v14 based but should be 
easily portable to newer versions.

Download link:

https://www.asuswebstorage.com/navigate/s/E382754C0DCE455CB56D3BA121D8C474W

Best,

Olivier Flury

**********************************************************************
4D Internet Users Group (4D iNUG)
FAQ:  http://lists.4d.com/faqnug.html
Archive:  http://lists.4d.com/archives.html
Options: http://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:[email protected]
**********************************************************************

Reply via email to