I have a field "response" with dontwrap set to FALSE (so the text wraps, double negatives always throw me for a bit of a loop)
I want to be able to scroll a certain string into view.
This is what I've got so far:
Code: Select all
put the lineindex of char (item 2 of tPos) of fld "response" into x Set The VScroll Of Field "response" To x * (The effective TextHeight of Field "response")
The problem with this method is that it doesn't know how to take into account the multiple lines created by setting the DONTWRAP to false. So the vscroll is usually off (even a broken clock is right twice a day).
I've tried turning on/off fixedlineheight but it doesn't change anything.
I've tried making a ghost field to check the effective line height of only the lines in question. Surprise surprise, same result.
Any help would be much appreciated!