Re: access canvas created

From: Andriy Zatserklyaniy <zatserkl_at_gmail.com>
Date: Fri, 19 Aug 2011 08:34:12 -0700


Hi,

Just created canvas becomes "current canvas" and will be pointed by global pointer gPad.

BTW, a correct syntax to create new object of TCanvas is (NB: no parenthesis!)

new TCanvas;

Cheers,
Andrei.

On Fri, Aug 19, 2011 at 8:16 AM, er cuji <supericarus2_at_yahoo.it> wrote:

> Hi,
>
> Dear roots,
>
> in a macro I am creating a new canvas just giving the command
>
>
> new TCanvas()
>
>
> instead of
>
>
> TCanvas *canvas1 = new TCanvas()
>
>
> to avoid declaring every time the object.
>
>
> Is there a way to access to the canvas just created using the first method?
>
>
> Regards
>
>
> SI
>
Received on Fri Aug 19 2011 - 17:34:40 CEST

This archive was generated by hypermail 2.2.0 : Fri Aug 19 2011 - 17:50:02 CEST