我在用用Animate控件实现标准动画演示的时候,用到了一段代码:
Play(1,FrameCount,0)语句来开始动画演示。
那么,这句话是什么意思?
play函数又是怎生用滴~~~
小姑娘,这个我也没用过,不过在delphi帮助里面有这样的说明:
Displays a sequence of frames from the AVI clip.
Delphi syntax:
procedure Play(FromFrame, ToFrame: Word; Count: Integer);
C++ syntax:
void __fastcall Play(Word FromFrame, Word ToFrame, int Count);
Description
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.