1 Reply Latest reply on Oct 30, 2006 9:10 AM by peterent

    Loading text to textArea control

      I'm planing to load huge text document to textArea for editing so I need to find a way to page the document.For example if my textArea in 700px high how to split document to pages and than to be able to change pages of the document in that textArea?
        • 1. Re: Loading text to textArea control
          peterent Level 2
          You'll need to determine the text metrics for some sample text to know approximately how much room (in pixels) a single line of text will hold. Then you can determine how many lines 700 pixels can hold. But since the TextArea does word-wrapping, it may be hard to determine exactly where the break should come, but you ought to get close.

          Check the Flex 2 doc for these topics: