Hi Aleksej,
Look at TStyle. There is already a function to set the default canvas color.
I have modified your test below accordingly.
Rene Brun
Aleksej Abyzov wrote:
>
> Hi everybody!
> Following the example in 'Users Guide' i do the following
> ------------------------------------------------------------
> TStyle* st1 = new TStyle("st1","my_style")
> st1->SetCanvasColor(10); //<==========
> st1->cd()
> gStyle->GetFillColor()
> (const Color_t)10
> TCanvas* ct = new TCanvas("ct","test",850,850)
> ct->UseCurrentStyle()
> ct->GetFillColor()
> (const Color_t)19
> -------------------------------------------------------------
> Is it OK? If it is so, then how can I change the style?
>
> With best regards
> Mit freundlichen Gruessen
>
> Alex Abyzov
> -----------------------------------------------------------------------
> - Deutsches Elektronen Synchrotron (DESY), Hamburg, Germany -
> - collaboration HERA-B -
> - office HERA-B bld. 61/110 -
> - office phone +49 40 8998-2844 -
> -----------------------------------------------------------------------
This archive was generated by hypermail 2b29 : Tue Jan 01 2002 - 17:51:03 MET