Re: TCanvas::Divide

Pasha Murat (murat@cdfsga.fnal.gov)
Wed, 4 Jun 1997 15:29:38 GMT


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.