Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

???TCanvas Background Color

Status
Not open for further replies.

Maingoka

Programmer
Mar 25, 2001
3
0
0
MG
Hi everybody!
Thanks to all of you who answered my question: "Waiting in C++Builder". It's OK now!
I have another problem:
I don't know how to set the background color of the Canvas of a TImage object when I draw something in it.

Thanks!

Maingoka
 
You may have to also do something like "Canvas->FillRect(ClientRect);" or
Code:
Canvas->Pen->Width = 10;
Canvas->Pen->Color = clRed;
Canvas->MoveTo(0,0);
Canvas->LineTo(Screen->Width,Screen->Height);
depending on how you called your canvas.

James P. Cottingham
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top