API:FMX.Objects.TPaintBox.OnPaint
Delphi
property OnPaint: TPaintEvent read FOnPaint write FOnPaint;
C++
__property TPaintEvent OnPaint = {read=FOnPaint, write=FOnPaint};
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
event | published | FMX.Objects.pas FMX.Objects.hpp |
FMX.Objects | TPaintBox |
Description
Occurs when the control is redrawn.
FMX.Objects.TPaintBox.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.