Counting pads in a vcanvas

Hi all,

I’d like to loop over pads in a canvas in a lazy way:

for( int i = 1 < can->GetNPad(); ++i ) { can->cd(); … }

but cannot see such a way to access the number of pads ( they don’t seem to be
counted ).
Would it be possible to add such a feature ?

cheers,
seb

see:

root.cern.ch/root/html/TPad.html#TPad:cd

Hi,

sorrily this doesn’t reply to my question: how do I get access to the number
of (sub-)pads so that I can blindly loop over them ?

cheers,
seb

if the pad does not exists cd() returns 0. That’s enough to end the loop I guess.