Vcl.ComCtrls.TAnimate.Repetitions

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

property Repetitions: Integer read FRepetitions write SetRepetitions default 0;

C++

__property int Repetitions = {read=FRepetitions, write=SetRepetitions, default=0};

Properties

Type Visibility Source Unit Parent
property published
Vcl.ComCtrls.pas
Vcl.ComCtrls.hpp
Vcl.ComCtrls TAnimate

Description

Specifies the number of times to repeat the sequence of frames.

Set Repetitions to specify the number of times the sequence of frames in the animation is repeated when the Active property is set to true. After the sequence is repeated by the specified number of times, the value of Active becomes false again.

To show the sequence a single time, set Repetitions to 1. Set Repetitions to 0 to indicate that the sequence of frames should repeat indefinitely. When Repetitions is 0, use the Active property or Stop method to interrupt the animation.

The Play method overrides Repetitions with the value passed as the Count parameter.

See Also