List Fields: Scrolling to a Line on Keypress |
|
Tested and works. You can enhance it by adding some automatic hiliting or send "mouseup" etc...## fld 1 is the list-field. on keyUp lekey if lekey is "a" then ## or whatever is your first letter set the scroll of fld 1 to 0 exit keyup ## will scroll to top end if put lineOffset(CR & lekey, field 1) into lo set the scroll of field 1 to lo * the effective textHeight of field 1 if lo is 0 then beep ## or whatever... end if end keyUp
Posted 8/7/2002 by Klaus Major to the Use Revolution List (See the complete post/thread)