Re: number of windows
Rene Brun (Rene.Brun@cern.ch)
Thu, 04 Mar 1999 07:18:21 +0000
Dmitri Litvintsev wrote:
>
> Hi ROOTers!
>
> I'm pretty novice and this is my first post...
>
> If I created several canvases, how can I get the total number
> of canvases? (I want to loop over them to refresh their contents).
>
> thanks,
> Dmitri Litvintsev
The TROOT object pointed by the global gROOT supports several lists
including the list of canvases. You can do:
Int_t ncanvases = gROOT->GetListOfCanvases()->GetSize()
Rene Brun