Re: How can I close TButtons?

From: Yongzhao Zhou (Yongzhao.Zhou@lnf.infn.it)
Date: Fri Aug 27 1999 - 22:56:10 MEST


Dear Prof. Rene Brun,
Sorry for I did not say it very clearly.
I just hide the TButton in loop of program and delete
them after loop when I click the "Quit Task" TButton.
And I found 
    gROOT->Reset("a");
can do that.
Thanks for your email and sorry for I did not read the
example of the TControlBar.
Best Regards,

------
Yongzhao Zhou, KLOE, LNF, INFN, Italy
Tel:39-06-94032696 Fax:39-06-94032427


On Fri, 27 Aug 1999, Rene Brun wrote:

> Yongzhao Zhou wrote:
> > 
> > Hi, All,
> > I have TButtons and close them as
> >    gApplication->Terminate(0);
> > but the main frame is closed too. And I tried something using
> >    TList* fPrimitives;
> >    fPrimitives->Delete();
> > But it was not successful.
> > Would you tell me how to close the TButtons and keep the frame to open?
> > thanks,
> > ------
> 
> May be I do not understand totally your question.
> You delete a TButton object via the delete operator in your code.
> I think it is a bad idea to delete a button via the mouse.
> 
> Rene Brun
> 



This archive was generated by hypermail 2b29 : Tue Jan 04 2000 - 00:43:38 MET