Hi Egon,
You can change the title border size in two ways:
- apriori with eg, gStyle->SetTitleBorderSize(6);
- aposteriori, eg assuming TCanvas *c1
TPaveText *title = (TPaveText*)c1->GetPrimitive("title");
title->SetBorderSize(8);
c1->Modified();
c1->Update();
see Users Guide page 34,35,120,121
see: http://root.cern.ch/root/HowtoStyle.html
Rene Brun
Egon Pavlica wrote:
>
> Hello to all!
>
> I have a problem, i don't know how to solve. I use root classes in my c++
> code. I have created my LData class, with virtual Draw method, from TNamed
> class. But the problem begins elsewhere. I create and draw a histogram in
> LData::Draw using TH1F::Draw method. Meanwhile new canvas is created and
> the title PaveText is created on the canvas. I'm intrested, how to change
> the Bordersize of this title PaveText on an automatically created canvas
> c1. Which is the best solution?
>
> Thanks
>
> ps. I've searched in root.cern.ch ROOT documentation, but i haven't found
> any text about using virtual Draw function...
> ------------------------------------------
> Egon Pavlica e-mail:egon.pavlica@ses-ng.si
> Laboratory for epitaxy and nanostructures
> Nova Gorica Polytechnic (www.ses-ng.si)
> tel.+386-5-3315-332
> ------------------------------------------
This archive was generated by hypermail 2b29 : Sat Jan 04 2003 - 23:50:52 MET