Re: number of windows

From: Rene Brun (Rene.Brun@cern.ch)
Date: Thu Mar 04 1999 - 08:18:21 MET


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



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