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

From: Mike Kordosky (kordosky@mail.hep.utexas.edu)
Date: Fri Feb 22 2002 - 16:50:54 MET


Hi Jacek,

I've noticed something similar when trying to edit the title with the
mouse (eg, DeleteText and then InsertText from the gui menu).  The old
text disappears when I do DeleteText, and reappears when I do InsertText.
I'm pretty sure this happened in older versions of root, but I use:

3.03/07 gcc 2.95.2 Debian.

> Just a stupid question.
> In a pad I draw a histogram with a title. This title goes into a TPaveText
> "title" on top of the pad. That's fine, but ... I would like to change
> this title afterwards. Somehow I cannot find any way to insert another
> text there. I can :
> 	((TPaveText *)(MyPad->FindObject("title")))->Clear()
> and it is really cleared, but then whatever I do the old text reappears.
> The root is 3.02/07 in a RH6.2/i386 with egcs-1.1.2.
> Thanks in advance,
> Jacek.
>

mike

-- 
Graduate Research Assistant  // High Energy Physics Lab
kordosky@hep.utexas.edu     // University of Texas at Austin
kordosky@fnal.gov	   //
ph: (512) 471-8426 (RLM Lab, Office)
    (512) 475-8673 (ENS Lab)



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