Show: Delphi
C++
Display Preferences
FMX.Types.TControl.OnPaint
From XE2 API Documentation
Delphi
property OnPaint: TOnPaintEvent read FOnPaint write FOnPaint;
C++
__property TOnPaintEvent OnPaint = {read=FOnPaint, write=FOnPaint};
Properties
| Type | Visibility | Source | Unit | Parent |
|---|---|---|---|---|
| event | published | FMX.Types.pas FMX.Types.hpp |
FMX.Types | TControl |
Description
Occurs when the control is redrawn.
OnPaint also occurs when the DoPaint is called.
Write an event handler for OnPaint to change the way the control renders itself.