yeah, that went thru my mind, but it seemed a bit of a manky way of doing it....ok well I will try it non the less.
Jeremy -----Original Message----- From: "Kyley Harris" <[EMAIL PROTECTED]> To: Multiple recipients of list delphi <[EMAIL PROTECTED]> Date: Wed, 9 Oct 2002 10:36:07 +1300 Subject: RE: [DUG]: Canvas > The background you are drawing to is part of the canvas also. Fillrect > is one way as you said. If there is some kind of image etc in the > background that you have no control of then you need to take a snapshot > of it before you overlay your text. Then use it to "fillrect" with a > draw command before you write the text again > > -----Original Message----- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] On > Behalf Of vss > Sent: Wednesday, 9 October 2002 10:25 a.m. > To: Multiple recipients of list delphi > Subject: [DUG]: Canvas > > > Hi all. > I am drawing some text on to a canvas with the brush style set to > clear. > But when I draw some more text, it still has the old text there and its > all jumbled up. > If I do a fillrect with the brush style set to solid its fine > obviously, > > apart from a rect the colour of the brush, but how do I clear the > canvas > > when I am drawing on it with the Brush style set to clear? > > i.e. draw some text with the bs clear, then clear the canvas, i.e. the > text goes away, then redraw the next bit of text. > > I feel I should know this....hmmm > > Jeremy > > ----------------------------------------------------------------------- > - > --- > New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED] > Website: http://www.delphi.org.nz > To UnSub, send email to: [EMAIL PROTECTED] > with body of "unsubscribe delphi" > Web Archive at: http://www.mail-archive.com/delphi%40delphi.org.nz/ > > ----------------------------------------------------------------------- > ---- > New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED] > Website: http://www.delphi.org.nz > To UnSub, send email to: [EMAIL PROTECTED] > with body of "unsubscribe delphi" > Web Archive at: http://www.mail-archive.com/delphi%40delphi.org.nz/ --------------------------------------------------------------------------- New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED] Website: http://www.delphi.org.nz To UnSub, send email to: [EMAIL PROTECTED] with body of "unsubscribe delphi" Web Archive at: http://www.mail-archive.com/delphi%40delphi.org.nz/