Re: [ROOT] Closing a TGFrame.

From: Rene Brun (Rene.Brun@cern.ch)
Date: Thu Oct 18 2001 - 18:52:58 MEST


Hi Brett,

We have a chapter "Object Ownership" starting at page 101 of
the Users Guide. You will find there the answer to your question and more.
You can find teh Users Guide at

http://root.cern.ch/root/RootDoc.html

Rene Brun

Brett Viren wrote:
> 
> Fons Rademakers writes:
>  >   it is important that you connect a function to the TGMainFrame CloseWindow()
>  > signal in which you delete the frame and all other widgets. The default
>  > TGMainFrame::CloseWindow() just closes the TGMainFrame (i.e. destroys the
>  > associated X11 window, but does not delete the TGMainFrame object)
> 
> Thanks Fons,
> 
> I still have problems, but I think these are due to undeleted or
> double deleted objects owned by my TGMainFrame, or one of its
> children.
> 
> I think this must have been asked many times before, but I couldn't
> find the answer: does TPad own its objects?  It seems that I remember
> a document explaining this, but searching through the user's guide and
> searching root.cern.ch came up empty.
> 
> -Brett.



This archive was generated by hypermail 2b29 : Tue Jan 01 2002 - 17:51:03 MET