It should involve getting to the underlying textfield, getting
bottomScrollV, calling getLineLength and other get* methods.

________________________________

From: [email protected] [mailto:[EMAIL PROTECTED] On
Behalf Of Jason The Saj
Sent: Tuesday, October 02, 2007 9:18 AM
To: [email protected]
Subject: [flexcoders] Last displayed character of a textArea?



I am dealing with a rather annoying dilemma. 

Often I'll set text or htmlText of a textArea dynamically. I will also
turn off scrolling. 

Often as the case may be, the set text is longer than the displayable
area. I'd like to be able to get the "displayed text length" (ie:
last character position displayed). This is extremely hard to
calculate due to the large variety of factors (ie: font size, word
spacing, word wrap, etc). 

This must exist internally because Flash already recognizes whether a
word extends beyond the bounds of the textArea and instead of simply
cutting it off at the edge; it removes the entire word from display.

Anyone aware of any way to get the last displayed character?



 

Reply via email to