Drawing on TPaintBox

By Diane Channers

I thought that a Delphi TPaintBox is to be used to draw custom images to a form, unlike TImage that displays an image that is stored in a file. So if I want to use Canvas.Rectangle and so on... use a PaintBox component.

That works, but the problem is that I have to redraw everything if the window has been covered by another window. Is there a better component that "remembers" what I have drawn?

Related Articles and Replies