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

From: Rene Brun (Rene.Brun@cern.ch)
Date: Wed Dec 02 1998 - 16:12:20 MET


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



This archive was generated by hypermail 2b29 : Tue Jan 04 2000 - 00:34:40 MET