Show: Delphi C++
Display Preferences

FMX.Controls.TControl.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
FMX.Controls.pas
FMX.Controls.hpp
FMX.Controls TControl

Description

Renders the control's surface.

The Paint method is called by DoPaint when a control is being painted by the PaintTo method. Before DoPaint, Painting is called. AfterPaint is called immediately after.

FireMonkey internally calls Paint to paint the control when the window is being painted. You must not call Paint explicitly.

The base class TControl implements an empty Paint. The descendants of TControl override Paint to provide specific rendering of the respective controls.

For example, Paint methods in classes of the FMX.Objects unit draw and fill shapes using the properties defined in these classes. See the descriptions of these classes to find the properties of the respective shapes.

See Also

Personal tools
In Other Languages
Previous Versions
Assistance