RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TAnimate.Repetitions Property

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

Pascal
property Repetitions: Integer;
C++
__property int Repetitions;

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. 

 

Active 

Play 

Stop 

Adding Silent Video Clips to an Application

Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!