FMX.Forms.TCustomForm.OnPaint
Delphi
property OnPaint: TOnPaintEvent read FOnPaint write FOnPaint;
C++
__property Fmx::Controls::TOnPaintEvent OnPaint = {read=FOnPaint, write=FOnPaint};
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
event | public | FMX.Forms.pas FMX.Forms.hpp |
FMX.Forms | TCustomForm |
Description
Occurs when the form is redrawn.
Use OnPaint to perform special processing when the form is redrawn. Any special painting on the form should be done in this event. OnPaint occurs before any controls on the form are painted.
- 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.