Displaying long text

3 posts / 0 new
Last post
Mike
Offline
Last seen: 3 weeks 5 days ago
Joined: 27 Jan 2011 - 22:34
Displaying long text

Hey,
What's the best component to display large amounts of text? I intend to load text from a file and display it in a Viewport,
but the component where I lay it must be able to resize itself to fit the text. Am I overlooking something obvious?

[Insert signature here]

millenliam
millenliam's picture
Offline
Last seen: 2 months 2 weeks ago
Joined: 11 Aug 2011 - 16:23
Re: Displaying long text

I usually use the TextEditor component to display large amounts of text, and just set to it to be read-only. If the amount of text won't fit into the bounds of the component, a scrollbar will automatically be added.

Mike
Offline
Last seen: 3 weeks 5 days ago
Joined: 27 Jan 2011 - 22:34
Re: Displaying long text

millenliam wrote:
I usually use the TextEditor component to display large amounts of text, and just set to it to be read-only. If the amount of text won't fit into the bounds of the component, a scrollbar will automatically be added.

Ah. That sounds simple enough. Thanks!

[Insert signature here]