Vcl.ExtCtrls.TPaintBox

From RAD Studio API Documentation
Jump to: navigation, search

Vcl.Controls.TGraphicControlVcl.Controls.TControlSystem.Classes.TComponentSystem.Classes.TPersistentSystem.TObjectTPaintBox

Delphi

TPaintBox = class(TGraphicControl)

C++

class PASCALIMPLEMENTATION TPaintBox : public Vcl::Controls::TGraphicControl

Properties

Type Visibility Source Unit Parent
class public
Vcl.ExtCtrls.pas
Vcl.ExtCtrls.hpp
Vcl.ExtCtrls Vcl.ExtCtrls

Description

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

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.

See Also