Canvas.Draw should stay on Form1.Refresh.. It doesn't
Posted on 1998-11-02
Say I have a form, and say that form's got a canvas (wow!).
If i'd have a bitmap like this:
var bmp : TBitmap
And I'd load a bitmap into it, much like this:
bmp := TBitmap.Create;
Then if I'd do this with my canvas:
it would draw the bitmap with the left top corner on 10,10.
So far, so good..
However, if I now do a form1.refresh, the canvas gets reset
to the default form1.colour. This also happens if I drag
a window over pieces of the canvas that have been drawn over.
I would actually like the canvas to keep what it's got, even
on a refresh. I've tried this with a TPaintBox, but it did
quite the same.