FMX.Objects.TRectangle.Paint

From Appmethod Libraries
Jump to: navigation, search

Object Pascal

procedure Paint; override;

C++

virtual void __fastcall Paint(void);

Properties

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

Description

Renders the control's surface.

FMX.Objects.TRectangle.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