 |
BorlandTalk.com Borland discussion newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
Mika Parjanen Guest
|
Posted: Wed Mar 30, 2005 1:49 pm Post subject: FillRect, Brush.Style := bsFDiagonal, HOW TO SET Background |
|
|
How can I set background to red and draw thin black lines into Canvas?
When I do this:
Canvas.Brush.Style := bsFDiagonal;
Canvas.Brush.Color := clRed;
Canvas.FillRect(rectangle);
The colors are vice versa. But where the Fillrect takes the background
color?
Thanks!
-Mika
|
|
| Back to top |
|
 |
Boris Novgorodov Guest
|
Posted: Wed Mar 30, 2005 2:02 pm Post subject: Re: FillRect, Brush.Style := bsFDiagonal, HOW TO SET Backgr |
|
|
| Quote: | How can I set background to red and draw thin black lines into Canvas?
|
Canvas.Brush.Color := clBlack;
Canvas.Brush.Style := bsFDiagonal;
SetBkColor(Canvas.Handle, clRed); // After Brush.Style !!!
Canvas.FillRect(ClientRect);
--
Regards
Boris Novgorodov
|
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|