Autofill / Auto-complete

SuperCard 4.5 & 4.6 projects (.zip archives only please).

Autofill / Auto-complete

Postby JoeKoomen2011 » Thu Jan 15, 2015 7:56 am

This Autofill (or auto-complete, if you prefer) project put a list from the project's "authorsList" user property into a global variable. When a name is typed into the AUTHOR field above, a hidden scrolling field appears with auto-fill suggestions. Using the arrow keys will allow you to navigate to your preferred choice and hitting the Enter or Return key will fill the author field and get rid of the suggestions.

If you write a new name that isn't in the authorsList, the new name is automatically added to the master list as well as the variable. The list at the side shows the names in the list as a convenience for testing and wouldn’t be used in a real project.

May code works, but is pretty sloppy, so feel free to play and give me some feedback on this. I’ve tried using pop-up menus but have been unsuccessful so far.

Joe Koomen
A primitive auto-fill project
(30.71 KiB) Downloaded 180 times
Joe Koomen
>> Random! ...Damn near killed 'em! <<
User avatar
Posts: 474
Joined: Thu Mar 12, 2009 1:38 pm

Re: Autofill / Auto-complete

Postby sctell » Fri Jan 16, 2015 12:46 am

Hi Joe,

Not played a lot with your script but a "lock screen" in the "keyInField" handler stops the flashing when the field text is changed.

All the best

Posts: 1142
Joined: Sun Jul 06, 2008 10:41 am

Return to Sample & Demo Projects

Who is online

Users browsing this forum: No registered users and 1 guest