FMX.Objects.TPaintBox.Paint

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

procedure Paint; override;

C++

virtual void __fastcall Paint();

Properties

Type Visibility Source Unit Parent
procedure
function
protected
FMX.Objects.pas
FMX.Objects.hpp
FMX.Objects TPaintBox

Description

Renders the control's surface.

FMX.Objects.TPaintBox.Paint inherits from FMX.Controls.TControl.Paint. All content below this line refers to FMX.Controls.TControl.Paint.

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