FMX.Types.TTimer.SetOnTimer
Delphi
procedure SetOnTimer(Value: TNotifyEvent); virtual;
C++
virtual void __fastcall SetOnTimer(System::Classes::TNotifyEvent Value);
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
procedure function |
protected | FMX.Types.pas FMX.Types.hpp |
FMX.Types | TTimer |
Description
Sets the value of the OnTimer event.
SetOnTimer is the protected write implementation of the OnTimer event. SetOnTimer calls UpdateTimer when the property value changes, killing any existing platform-native timer and creating a new one that keeps track of time.
Override SetOnTimer to change the implementation of the OnTimer event. When overriding SetOnTimer, be sure to call the inherited method.