[ROOT] TButton vs Canvas deletion

From: Stephane Tourneur (tourneur@fnal.gov)
Date: Fri Mar 16 2001 - 22:00:58 MET


Deer rooters,

I'm trying to make a very simple histogramming display using TButtons
inside a TCanvas. I'd want my TCanvas to be cleared and updated by
pressing a button inside this same TCanvas. Doing that I get a
segmentation violation error : I suppose that it is due to the fact that 
a TButton's method can't delete the TButton itself... 
Does anybody know a simple way to clear and update a TCanvas by pressing a
button situated inside this canvas, without making ROOT angry??
Thanks a lot,
Stephane
student at Fermilab/CDF for the UC Davis.



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