Thanks Mike.
You suggestion to use the "screenmouseloc" works a treat in a static context
i.e. after the field has been scrolled.
It never occurred to me that I could use a virtual mouse position to provide
the information I requred.
So while this provides an avenue for part 1 of the puzzle
Ho
Just noticed a small issue. Might want to add a few pixels to the x,y
coords of tFieldLoc for those occaisions when the blank space between lines
is at the top of the field. (in this situation it can return the line
number of the unseen line)
On Sun, Jul 1, 2012 at 7:44 AM, Mike Bonner wrote:
>
I'm not sure this is a good way to do so, but maybe it will work for you.
I created a field with different text sizes/line heights.
In a button is the following script
on mouseUp
lock screen
put globalloc(the topleft of field 1) into tFieldLoc -- get the
screenloc position of the topleft o
Is there a way to determine the line number of the top line of a text field?
The field's textheight is NOT set as the text present comes from html and
different heading levels are present.
Context:
I am using an rTree object to provide an hierarchical list of these headings
and clicking on a no