Hi Thomas,
I know that it may seem a bit confusing, but the line color must be set
on teh shape, not the node. See $ROOTSYS/tutorials/shapes.C
Rene Brun
On Wed, 11 Apr 2001, Thomas Eberl wrote:
> Dear rooters,
>
> I try to change the line color of a TNode that I draw in a TCanvas, but
> I always get the default (white). The code is:
> window = new TCanvas("Online_Monitor","Online_Monitor",800,800);
> window -> SetFillColor(17);
> window -> cd();
> cout<<node[0] ->GetLineColor()<<endl;
> node[0] -> SetLineColor(4);
> cout<<node[0] ->GetLineColor()<<endl;
> node[0] -> Draw();
> viewer = (TView *) gPad->GetView();
> viewer->SetRange(-65,-65,-65,65,65,65);
> //viewer->ShowAxis();
> viewer->Top();
> viewer-> RotateView(90,180);
> window -> Modified();
>
> The output of the couts is 1 and after the change it is 4, but still I
> see a "white" wire frame instead of a blue one. Why is this setting
> ignored.
>
> Thanks
>
> Thomas
>
This archive was generated by hypermail 2b29 : Tue Jan 01 2002 - 17:50:41 MET