Re: How to change line automatically when text is too long

Rene Brun (Rene.Brun@cern.ch)
Wed, 02 Dec 1998 16:12:20 +0100


Wei Xie wrote:
>
> Dear Rooters,
>
> If I write some words into a pad or canvas, when the words is too long,
> it will go beyond the pad boundary. I can cut the long words into several
> and use TPaveText pave->AddText to do the job but this is a little bit
> inconvenient. It there any ways that can separate this long words
> automatically into different lines before it goes beyonds pad boundary ?

This class does not exist in Root. However, what you request is easy
to do with the version 2.00/13
You can use TPaveText::ReadFile to import an ascii file.
Use your favorite editor to automatically wrap the long lines
and import the resulting file.

Rene Brun