Re: Adding a Pad into a Canvas

From: Rene Brun (Rene.Brun@cern.ch)
Date: Thu Oct 21 1999 - 16:42:24 MEST


Hi Anton,
I am very reluctant to introduce this functionality. No problems
on the screen. The problem is what to do in case you have opened
a Postscript file and your previous pads have already been drawn on the
file.

Rene Brun

KOSU_FOKIN@garbo.lucas.lu.se wrote:
> 
> Yes, exactly. That's why I've been asking if there is any alternative to
> Divide() such as TCanvas::Add(TPad*); I think that such a function which
> "automatically" adds a pad into a canvas and takes care of pad's order,
> etc. may be useful. Clear() before Divide() works fine but I am not
> sure it is the most efficient way to handle such Add functionality.
> 
> Best regards,
> Anton
> 
> Hi Anton,
> 
> if you look at the source code of TPad::Divide() you will notice
> that you cannot avoid the Clear() if you want to change the number
> of subpads.
> 
> Cheers
> Otto



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