[ROOT] Text attributes in TPaveText

From: Chris Milne (phycm@phy.hw.ac.uk)
Date: Mon Aug 13 2001 - 16:53:09 MEST


Hi there,

I was wondering if anyone could resolve my problem, I have a TPaveText object 
with 4 lines of text in it (added using AddText()), is there any way of making 
the first line Bold, and leving the rest the same? My code is:

   TPaveText *display = new TPaveText(0.01,0.76,0.99,1);
   display.Draw();  
   display.AddText("Bleaching HH");
   Double_t Decay=0.0;
   char title[30];
   Double_t par[2];
   fn->GetParameters(par);
   if(par[1]!=0)
     Decay=(-1/par[1]);
   sprintf(title,"SCP Decay Constant =%f",Decay);
   display.AddText(title);  
   fn2->GetParameters(par);
   Decay=0.0;
   if(par[1]!=0)
     Decay=(-1/par[1]); 
   sprintf(title,"OCP Decay Constant =%f",Decay);
   display.AddText(title);  
   sprintf(title,"Range %f to %f",slidxmin,slidxmax);
   display.AddText(title);
   display->Draw("same");
   display->SetTextFont(12);
   
It's the "Bleaching HH" I want in bold.

Thanks
Chris Milne



This archive was generated by hypermail 2b29 : Tue Jan 01 2002 - 17:50:57 MET