FMX.Ani.TAnimation.Enabled
Delphi
property Enabled: Boolean read FEnabled write SetEnabled default False;
C++
__property bool Enabled = {read=FEnabled, write=SetEnabled, default=0};
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
property | public | FMX.Ani.pas FMX.Ani.hpp |
FMX.Ani | TAnimation |
Description
Starts the animation during the initialization of the runtime.
Set Enabled to True to start the animation immediately after the animation instance is created and attached to its parent. Set Enabled at design time in the Object Inspector for the TAnimation or when the TAnimation is created dynamically. With Enabled set to True, you do not have to execute the TAnimation Start method. You can also set Enabled to True anytime to start the animation, but you must set Enabled to False and then to True again to run the animation a second time. Also, if you set Enabled to False before the animation completes, setting Enabled back to True will start the animation from the current value if StartFromCurrent is True, otherwise it will rerun the animation from the StartValue.
See Also
- FMX.Ani.TAnimation.Start
- FMX.Ani.TFloatAnimation.StartFromCurrent
- FMX.Ani.TFloatAnimation.StartValue