RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TPaintBox Class

TPaintBox provides a canvas that applications can use for rendering an image.

Pascal
TPaintBox = class(TGraphicControl);
C++
class TPaintBox : public TGraphicControl;

Use TPaintBox to add custom images to a form. Unlike TImage, which displays an image that is stored in a bitmap, icon, or metafile, TPaintBox requires an application to draw the image directly on a canvas. Use the OnPaint event handler to draw on the paint box's Canvas, the drawing surface of the paint box. 

 

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!