Hello rooters
I try to get the stat box in a pad in order to change the Line Attributes
with the following commands (c1_1 is my pad) in a macro:
TPaveStats *stats = (TPaveStats*) c1_1->GetPrimitive("stats");
stats->SetLineColor(9);
and this is the error I obtain
Error: illegal pointer to class object stats 0x0 88
What am I doing wrong ? Why if I use the same command interactively
does it work ?
Thank you
Paolo
--
********************************************
* Paolo Maestro *
* Istituto Nazionale di Fisica Nucleare *
* INFN - V.Vecchia Livornese,1291 *
* 56010 S.Piero a Grado (Pisa) Italy *
* tel : +39-050-880309/245 *
* fax : +39-050-880317 *
********************************************
This archive was generated by hypermail 2b29 : Tue Jan 02 2001 - 11:50:36 MET