FMX.Ani.TCustomPropertyAnimation.Stop
Delphi
procedure Stop; override;
C++
virtual void __fastcall Stop();
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
procedure function |
public | FMX.Ani.pas FMX.Ani.hpp |
FMX.Ani | TCustomPropertyAnimation |
Description
Stops the running of the animation.
Stop terminates the processing of the animation. The animation runs for Duration seconds as the property controlled by the animation changes from StartValue to StopValue. You can terminate the animation using the Stop method. This is handy for animations that have their Loop property set to True and that would otherwise run forever.
On executing Stop, the controlled property value is moved instantly to the StopValue. StopAtCurrent stops at the current value.
You can also use the Enabled property to start and stop the animation.