Klaus:
set the scroll of fld "fonts" to tLine*tTH + the height of fld "fonts" set the hilitedlines of fld "fonts" to tLine
The test is invalid; the 2nd quoted line overrides the 1st. Therefore you don't see the results of your scrolling code. To debug your scroll calc, first comment out the set hilitedlines. Easy testing: use an ask, input either line # or font name. (To test hilite, either forget about scroll calc, or do it AFTER.) Watch out about adding versus subtracting field height. Why add? No more mysteries. Or at least fewer. :) Best wishes, Curry Kenworthy Custom Software Development "Better Methods, Better Results" LiveCode Training and Consulting http://livecodeconsulting.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