Oh yeah. FormattedHeight works also on a chunk of a field. That will save you a
little bit of math.
Bob
On Nov 27, 2010, at 9:31 AM, Jonathan Lynch wrote:
> Hi Richard,
>
> I am pretty sure you can use the FormattedRect of a chunk of text to
> accomplish this.
_
I can see why the formattedHeight would not work. It takes into account line
wraps as well as line breaks, and a variable or property cannot wrap text.
Apart from putting the text in question into a hidden field of the exact
dimensions, and then checking the formatted height of that, I don't se
Jonathan Lynch wrote:
I am pretty sure you can use the FormattedRect of a chunk of text to
accomplish this.
Thanks, Jonathan. I had thought so too, but I couldn't work out the
syntax for it.
But now that you mention it, I went back and tried it again and now it
works.
Thank you!
I have
Hi Richard,
I am pretty sure you can use the FormattedRect of a chunk of text to
accomplish this.
On Sat, Nov 27, 2010 at 11:23 AM, Richard Gaskin wrote:
> I need to know the vertical coordinates in pixels of the beginning and end
> points for a chunk of text in a scrolling field.
>
> I'm curre
I need to know the vertical coordinates in pixels of the beginning and
end points for a chunk of text in a scrolling field.
I'm currently using the selectedLoc on the first and last char of the
text run, locking the screen and messages while I get that.
The problem is that I sometimes need to