FMX.Ani.TColorKeyAnimation
Delphi
TColorKeyAnimation = class(TCustomPropertyAnimation)
C++
class PASCALIMPLEMENTATION TColorKeyAnimation : public TCustomPropertyAnimation
Propriétés
Type | Visibilité | Source | Unité | Parent |
---|---|---|---|---|
class | public | FMX.Ani.pas FMX.Ani.hpp |
FMX.Ani | FMX.Ani |
Description
Attaché à une propriété d'un objet pour changer la couleur de cette propriété dans le temps.
Attachez un TColorKeyAnimation à un objet parent TFmxObject de l'une des façons suivantes :
- Sélectionnez l'objet parent et double-cliquez sur un TColorKeyAnimation dans la Palette d'outils. Définissez ensuite le PropertyName sur le nom de la propriété dans l'objet parent à animer.
- Dans l'inspecteur d'objets de l'objet parent, double-cliquez sur l'icône pellicule auprès de la propriété à animer. Cela assignera automatiquement le PropertyName.
- Créez dynamiquement une instance de TColorKeyAnimation et assignez l'objet parent en tant que parent. Définissez ensuite le PropertyName.
Voir aussi
- Effets d'animation FireMonkey
- FMX.Ani.TColorKeyAnimation.PropertyName
- FMX.Ani.TAnimation.Loop
- FMX.Ani.TAnimation.Start
- FMX.Ani.TAnimation.Stop
- FMX.Ani.TAnimation.Enabled
- FMX.Ani.TAnimation.AnimationType
- FMX.Ani.TAnimation.Interpolation