Re: [ROOT] how to change the "title" of a pad

From: Rene Brun (Rene.Brun@cern.ch)
Date: Mon Feb 25 2002 - 10:58:57 MET


Hi Jacek,

I have implemented your suggestion in the CVS version.
Change the title with the "SetTitle" item in the histogram or graph
context menu. The TPaveText will be automatically readjusted.

Rene Brun

Jacek M. Holeczek wrote:
> 
> > The problem was in THistPainter::PaintTitle. I am now using the
> > TLatex::GetXsize function to evaluate precisely the text extent along x.
> Something comes to my mind.
> Would it be a good idea that when the "text length" is changed (by the
> user from the gui, for example) also the TPaveText "title" length is
> resized automatically (I vote for it) ?
> I have met this problem - my multigraph has a "short" default title, then
> after it is drawn, I change it into something much longer, but the text is
> unreadable (the font is very small).
> Best regards,
> Jacek.



This archive was generated by hypermail 2b29 : Sat Jan 04 2003 - 23:50:42 MET