FMX.Ani.TAnimation.Stop

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

procedure Stop; virtual;

C++

virtual void __fastcall Stop(void);

Properties

Type Visibility Source Unit Parent
procedure
function
public
FMX.Ani.pas
FMX.Ani.hpp
FMX.Ani TAnimation

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 the StartValue to the 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.

See Also