Hi Rene,
On Mon, 3 Sep 2001 06:28:02 +0200 (METDST)
Rene Brun <brun@pcbrun.cern.ch> wrote
concerning "Re: [ROOT] Fill colour of TBox, TPave, etc. from TStyle":
> Hi Christian,
> The TBox line and fill styles are taken from the current style.
> If this does not work, please let me know an example.
Oh, I probably overlooked that, and it does work:
gStyle->SetFillColor(13)
TCanvas* c = new TCanvas
TBox* b1 = new TBox(.1, .2, .3, .4)
b1->Draw()
gStyle->SetFillColor(30)
TBox* b2 = new TBox(.15, .25, .35, .45)
b2->Draw()
TPave* p = new TPave(.2, .3, .4, .5)
p->Draw()
does what I expect.
> TPave and derived classes cannot take the default from the style
> (I could introduce additional options in the already pretty crowded
> TStyle attributes).
What I wanted was really a way to set the background on a TLegend from
the current style, since that will be extremely usefull when you write
canvases to disk as a macro. I know TStyle is really crowded, but I
think something like an extra background, la di da, for TPave or
TLegend would be a good idea.
Yours,
Christian Holm Christensen -------------------------------------------
Address: Sankt Hansgade 23, 1. th. Phone: (+45) 35 35 96 91
DK-2200 Copenhagen N Cell: (+45) 28 82 16 23
Denmark Office: (+45) 353 25 305
Email: cholm@nbi.dk Web: www.nbi.dk/~cholm
This archive was generated by hypermail 2b29 : Tue Jan 01 2002 - 17:50:59 MET