注册 登录
编程论坛 Delphi论坛

[求助]标准动画演示

fuliping 发布于 2007-03-15 21:24, 1555 次点击
再次容俺问一问:
我在用用Animate控件实现标准动画演示的时候,用到了一段代码:
Play(1,FrameCount,0)语句来开始动画演示。
那么,这句话是什么意思?
play函数又是怎生用滴~~~
6 回复
#2
sgliuxiu2007-03-15 22:37

小姑娘,这个我也没用过,不过在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.

#3
fuliping2007-03-20 11:54
斑竹,你怎么知道我是小姑娘?
谢谢你的帮助,唯一遗憾的就是:
为什么是英文啊~~~~!!!!(请容许我号叫一声)

顺便问一下:这些英文资料都是在Delphi自带的帮助里面查道的吗?
#4
sgliuxiu2007-03-20 12:30
是的,都是delphi中帮助里面查到的.
我翻译一下:
procedure Play(FromFrame, ToFrame: Word; Count: Integer);
fromframe:是动画开始帧,toframe是最后一帧.toframe必须大于或者等于fromframe,且要小于等于帧数(framecount).
count是重复演示次数,如果=0的话,就会一直演示下去直到调用了stop方法.

我的英语也不好,意思可能是这样的,呵呵.

#5
erlin2007-03-23 18:26
既然连这么厉害的斑竹都说英语不好,那我们...
能给介绍delnet帮助中文版的说或软件吗?
还有你猜猜我是小姑娘还是小男孩???
不要只看资料
#6
sgliuxiu2007-03-24 12:48
楼上的,看你的签名档,肯定是boy了,哈。
telnet帮助还是delnet帮助?后者偶不会
#7
kmliap2008-11-12 11:29
谢谢版主翻译!!!!!!看到一大堆英语就头疼!!!!!
1