fixed textheight affects scrolling?
Curry Kenworthy
curry at pair.com
Fri Jul 10 15:30:24 EDT 2020
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/
More information about the use-livecode
mailing list