FMX.Ani.TAnimation.Start
Delphi
procedure Start; virtual;
C++
virtual void __fastcall Start(void);
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
procedure function |
public | FMX.Ani.pas FMX.Ani.hpp |
FMX.Ani | TAnimation |
Description
Starts running the animation.
Note: The object being animated (that is, the Parent of this animation) must be a visual object that is visible; otherwise no animation runs--calling Start has no effect.
Start initializes 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.
If you stop the animation before it completes, the animation resumes at the current value if the StartFromCurrent property is True, otherwise it starts over at StartValue.
You can also use the Enabled property to start and stop the animation.