Vcl.Controls.TGraphicControl.Paint

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

procedure Paint; virtual;

C++

virtual void __fastcall Paint();

Properties

Type Visibility Source Unit Parent
procedure
function
protected
Vcl.Controls.pas
Vcl.Controls.hpp
Vcl.Controls TGraphicControl

Description

Renders the control's surface.

The Paint method is called automatically when a lightweight control needs to update its display area. Code in the Paint method uses the Canvas property to render the control surface.

As implemented in TGraphicControl, Paint does nothing. Specific rendering logic is provided by Paint methods in descendent control classes.

See Also