Vcl.ComCtrls.TAnimate.Play

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

procedure Play(FromFrame, ToFrame: Word; Count: Integer);

C++

void __fastcall Play(System::Word FromFrame, System::Word ToFrame, int Count);

Properties

Type Visibility Source Unit Parent
procedure
function
public
Vcl.ComCtrls.pas
Vcl.ComCtrls.hpp
Vcl.ComCtrls TAnimate

Description

Displays a sequence of frames from the AVI clip.

Call Play to display the specified sequence of frames, repeating the sequence Count times. FromFrame is the first frame in the sequence, where 1 specifies the first frame in the clip, 2 specifies the second frame, and so on. ToFrame is the last frame in the sequence. The value of ToFrame should be greater than or equal to FromFrame and less than or equal to the value of the FrameCount property. Count specifies the number of times the sequence should be repeated. If Count is 0, the sequence is repeated until the Stop method is called.

If the animation control is not Open when Play is called, Play sets Open to true.

Note: Calling Play is the same as setting StartFrame to FromFrame, StopFrame to ToFrame, Repetitions to Count, and then setting Active to true.

See Also