Hi Pete, I wonder if you'd like my search list lib. It is in the private section of my website at http://qery.us/3eo but you can see a picture at http://qery.us/3en and you can contact me if you have any questions.
-- Best regards, Mark Schonewille Economy-x-Talk Consulting and Software Engineering Homepage: http://economy-x-talk.com Twitter: http://twitter.com/xtalkprogrammer KvK: 50277553 Use Color Converter to convert CMYK, RGB, RAL, XYZ, H.Lab and other colour spaces. http://www.color-converter.com We have time for new software development projects. Contact me for a quote. On 6 apr 2013, at 21:20, Peter Haworth wrote: > Trying to implement an auto completion function for a text field. > > I have a keyUp handler that gets the current contents of the field and > searches though a list of possible matches. If one is found, I tried > setting the text of the field to it. I see the match turn up in the field, > but when I leave the field, an exitField message is sent rather than a > closeField message, indicating that the field contents didn't change, which > they clearly did. > > Next I tried using the type command to put the extra characters of the > matched string into the field. That works but looks kinda > clunky especially if it's a lengthy string, even though I set the typing > rate to zero before issuing the type command, . > > Setting the text of the field is very smooth but the lack of a closeField > message makes it impractical for me. Seems like setting a field's contents > should make it aware that its contents have changed but apparently not. > Any tricks to achieve this? > > Thanks, > > > Pete > lcSQL Software <http://www.lcsql.com> > _______________________________________________ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode