Type-to-Match in List Field |
|
Here's mine (watch for line wrap):
This allows you to type more than just the first character of a line to hone in on an exact line match. If the user pauses for more than a second (60 ticks) then the collected keystrokes are abandoned and the search starts over. You can adjust the timing by changing the "60" to something else.local lOldTicks,lUserKeys on keyDown whichKey -- select from keyboard -- J. Landman Gay, 1990, modified for Revolution: 2003 if (the selectedField is not "") or (charToNum(whichKey) is among the items of "28,29,30,31") -- arrow keys then pass keyDown if the ticks - lOldTicks > 60 then put "" into lUserKeys put whichKey after lUserKeys put return & fld 1 & return into tListText get lineoffset(cr&lUserKeys,tListText) if it > 0 then set the hilitedlines of fld 1 to it put the ticks into lOldTicks end keyDown
Posted 5/5/2005 by Jacque Landman Gay to the Use Revolution List