[ROOT] TCanvas

From: Al-Turany Dr. Mohammad (M.Al-Turany@gsi.de)
Date: Fri Apr 25 2003 - 08:25:11 MEST


Hallo,

actually I have two questions about the TCanvas:

1. Is it possible to keep a TCanvas in Memory when closing the canvas
window?

	I tried to add my TCanvas to a TObjArray and  remove it from the
ListOfCanvases and the ListOfCleanups but it did not work. Doing this I can
draw the canvas once and then it is added again to the root lists and when I
close it,  it is deleted. Is there any way to avoid this?



2. Is it possible to stream a TCanvas back from a file to a
TRootEmbeddedCanvas?

	It is the same problem which Thomas Bretz reported two weeks ago.
The Only way I found to do this, is to read the ListOfPrimitives from the
TCanvas, set the gPad pointer to the  TRootEmbeddedCanvas,  iterate through
the TCanvas::ListOfPrimitives and call Draw() for each entry, it works but
may be there is a better way to do it?


regards


Mohammad		

##################################################
Dr. Mohammad Al-Turany     
Experiment Data Processing (DV & EE)
Gesellschaft für Schwerionenforschung (GSI)
Planckstr. 1                             
D-64291 Darmstadt, Germany
Tel: +49-6159-71-2554
Fax: +49-6159-71-2986
http://www-linux.gsi.de/~turany
##################################################



This archive was generated by hypermail 2b29 : Thu Jan 01 2004 - 17:50:11 MET