FMX.Objects.TImage.OnPaint
Delphi
property OnPaint;
C++
__property OnPaint;
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
event | published | FMX.Objects.pas FMX.Objects.hpp |
FMX.Objects | TImage |
Description
FMX.Objects.TImage.OnPaint inherits from FMX.Controls.TControl.OnPaint. All content below this line refers to FMX.Controls.TControl.OnPaint.
OnPaint also occurs when:
- The control is redrawn.
- DoPaint is called.
Write an event handler for FMX.Controls.TControl.OnPaint to change the way the control renders itself.
Tip: Notice that calling BeginScene in the OnPaint event handlers have 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 the drawing to have an effect.