Re: Pointer to Stats Box

From: Otto Schaile (Otto.Schaile@Physik.uni-muenchen.de)
Date: Mon Jul 19 1999 - 09:35:07 MEST


On Sat, 17 Jul 1999, Norbert Danneberg wrote:

> does anybody know how to get a pointer to the statistics box ?
> I tried gPad->GetListOfPrimitives()->FindObject("stats") but it 

Hi Norbert,
make sure gPad points to the pad in question, then:

TPaveText *stats = (TPaveText*)gPad->GetPrimitive("stats");
stats->SetTextSize(0.03);

should work.

The attributes of the statbox are also modifyable via TStyle.

Cheers
Otto 
----------------------------------------------------------------------------
Otto Schaile                    Sektion Physik der LMU Muenchen
Phone: (+49 89)289 14070        Am Coulombwall 1, D-85748 Garching, Germany
FAX:   (+49 89)289 14072        EMail: Otto.Schaile@Physik.Uni-Muenchen.DE



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