FMX.Ani.TCustomPropertyAnimation.Start

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

procedure Start; override;

C++

virtual void __fastcall Start(void);

Properties

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

Description

Starts running the animation.

Note: The object being animated, which is also the parent of this animation, must be a visual object that is visible. Otherwise, calling Start has no effect.

Start initializes the animation processing. 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.

See Also