I read in the user guide (p.107):
b = new TBox(0.2,0.2,0.8,0.3)
b->Draw()
nothing apparently happens. Why? I need to draw some rectangcles in my canvas with different colors.
I read in the user guide (p.107):
b = new TBox(0.2,0.2,0.8,0.3)
b->Draw()
nothing apparently happens. Why? I need to draw some rectangcles in my canvas with different colors.
Hi,
The box is there but has the same color as the canvas (by default). If you add b->SetFillColor(5); before b->Draw(); you will see it. I will change the example in the User’s Guide to avoid this confusion.
Best regards, Ilka