FMX.Types.TFmxObject.AnimateFloatWait
Delphi
procedure AnimateFloatWait(const APropertyName: string; const NewValue: Single; Duration: Single = 0.2; AType: TAnimationType = TAnimationType.In; AInterpolation: TInterpolationType = TInterpolationType.Linear);
C++
void __fastcall AnimateFloatWait _DEPRECATED_ATTRIBUTE1("Use FMX.Ani.TAnimator instead") (const System::UnicodeString APropertyName, const float NewValue, float Duration = 2.000000E-01f, TAnimationType AType = (TAnimationType)(0x0), TInterpolationType AInterpolation = (TInterpolationType)(0x0));
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
procedure function |
public | FMX.Types.pas FMX.Types.hpp |
FMX.Types | TFmxObject |
Description
Warning: AnimateFloatWait is deprecated. Please use Ani.TAnimator.
Creates a TFloatAnimation for this object (self) and does not return until the animation is finished.
AnimateFloatWait creates a TFloatAnimation, makes its parent this TFmxObject (self), and does not return until the animation is finished.
AnimateFloatWait does the following:
- Sets the AnimationType property of this float animation to be the TAnimationType provided in the
AType
parameter. - Sets the Interpolation property of this float animation to be the TInterpolationType provided in the
AInterpolation
parameter. - Sets the Duration event of this float animation to be the integer provided in the
Duration
parameter. - Sets the PropertyName property of this float animation to be the string provided in the
APropertyName
parameter. - Sets the StartFromCurrent property of this float animation to be True.
- Sets the StopValue property of this float animation to be the real number provided by the
NewValue
parameter. - Calls Start to start the animation.