Hi,
Try:
{
TCanvas *c1 = new TCanvas("c1", "Test",4,18,500,500);
TBox *box1 = new TBox(0.5,0.5,0.6,0.6);
box1->SetFillColor(19);
box1->Draw();
TBox *box2 = new TBox(0.5,0.5,0.6,0.6);
box2->SetFillStyle(0);
box2->SetLineColor(2);
box2->SetLineWidth(2);
box2->Draw();
}
Cheers, Olivier
On 2 Apr 2004, Alberto Pulvirenti wrote:
> Hi to all,
>
> I am just trying to draw a box in a canvas, but I don't manage to set
> its borderline color in order to be visible (black on white bg).
> I tried to set it by SetLineColor and SetLineWidth, but I did not
> succeed.
>
> Is there something else to do?
>
> Thanks,
> alberto
>
>
--
Org: CERN - European Laboratory for Particle Physics.
Mail: 1211 Geneve 23 - Switzerland Mailbox: J25910
E-Mail: Olivier.Couet@cern.ch Phone: +41 22 7676522
WWW: http://cern.ch/Olivier.Couet/ Fax: +41 22 7677155
This archive was generated by hypermail 2b29 : Sun Jan 02 2005 - 05:50:07 MET