FMX.Colors.TColorBox.OnPaint

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

property OnPaint: TOnPaintEvent read FOnPaint write FOnPaint;

C++

__property OnPaint;

Properties

Type Visibility Source Unit Parent
event published
FMX.Colors.pas
FMX.Colors.hpp
FMX.Colors TColorBox

Description

Occurs when the control is redrawn.

FMX.Colors.TColorBox.OnPaint inherits from FMX.Controls.TControl.OnPaint. All content below this line refers to FMX.Controls.TControl.OnPaint.

Occurs when the control is redrawn.

OnPaint also occurs when DoPaint is called.

Write an event handler for OnPaint to change the way the control renders itself.

Tip: Notice that calling BeginScene in the OnPaint event handlers has no effect, because BeginScene is called before the OnPaint event handler runs. This guarantees that painting always occurs in OnPaint without requiring extra and probably unexpected code to allow drawing to have an effect.

See Also