-andrew
On 2/22/06, Andrew Cacioppo <
[EMAIL PROTECTED]> wrote:
I'm programtically selecting text in a TextArea component by calling setSelection( startIndex, endIndex ), but often times, the selection is offscreen.
Is there a way to get the TextArea to scroll so the selected text is part of the displayed area?
I can get the text area to scroll to the end of the text by setting vPostion = maxVpostion, but I'm not sure of a way to calculate the vPostion of currently selected text.
Searching the list, I've seen solutions for doing this with a List, but not TextArea.
Thanks
-andrew
--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
SPONSORED LINKS
Web site design development | Computer software development | Software design and development |
Macromedia flex | Software development best practice |
YAHOO! GROUPS LINKS
- Visit your group "flexcoders" on the web.
- To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
- Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.