Re: [ROOT] Deleting a Pad containing a TObject

From: Rene Brun (Rene.Brun@cern.ch)
Date: Tue Jul 16 2002 - 11:51:22 MEST


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