Scroll a field to a specified line number
curry at pair.com
Mon Aug 17 03:53:20 EDT 2020
> set the vScroll of fld 1 to (60 * the effective textHeight of fld 1)
> Clicking the button takes me to line 65, and when I set the
> list behaviour to true the button scrolls me to line 69
> turn "fixedLineHeight" on for the field
And subtract a line.
Because when scroll is 0, we already see line 1.
To reach line 60, we don't need to add 60 to 1.
1 + 59 = 60.
Custom Software Development
"Better Methods, Better Results"
LiveCode Training and Consulting
More information about the use-livecode