Re: [ROOT] Deleting a Pad containing a TObject

From: Thomas Bretz (tbretz@astro.uni-wuerzburg.de)
Date: Tue Jul 16 2002 - 13:05:05 MEST


Hi Rene,

that's not what I was asking for... I don't want my object to be
destroyed...

Thomas.

Rene Brun wrote:
> 
> Yes,
> 
> in the constructor of your object, add the statement
>   SetBit(kCanDelete);
> and your object will be automatically deleted when closing the pad.
> 
> See many examples in ROOT itself.
> 
> Rene Brun
> 
> On Tue, 16 Jul 2002, Thomas Bretz wrote:
> 
> > Hi all,
> >
> > if I have a TObject appended to a pad, is there a way for the TObject to
> > be noticed if the pad is closed (deleted)?
> >
> > Thanks,
> > Thomas.
> >



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