Re: TCanvas::Divide

From: Pasha Murat (murat@cdfsga.fnal.gov)
Date: Wed Jun 04 1997 - 17:29:38 MEST


Rene Brun writes:
 > 
 > We could also implement functions like:
 >    TPad::cd(Int_t i)
 >    TPad::cd(Int_t i, Int_t j)
 >

It would be very helpful. And 2 following methods

	TPad* TPad::Pad(Int_t i);
	TPad* TPad::Pad(Int_t i, Int_t j);

could provide the rest functionality in a convenient form. 
May be it is a matter of personal taste, but

	TPad* pad = page->Pad(i);

looks much nicer then

        sprintf(padname,"page_%d",i+1);
	TPad* pad = (TPad*)page->GetPrimitive(padname);


					Pasha.



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