| 网站首页 | 业界新闻 | 小组 | 威客 | 人才 | 下载频道 | 博客 | 代码贴 | 在线编程 | 编程论坛
欢迎加入我们,一同切磋技术
用户名:   
 
密 码:  
共有 1538 人关注过本帖
标题:[求助]标准动画演示
只看楼主 加入收藏
fuliping
Rank: 1
等 级:新手上路
帖 子:81
专家分:0
注 册:2006-11-20
收藏
 问题点数:0 回复次数:6 
[求助]标准动画演示
再次容俺问一问:
我在用用Animate控件实现标准动画演示的时候,用到了一段代码:
Play(1,FrameCount,0)语句来开始动画演示。
那么,这句话是什么意思?
play函数又是怎生用滴~~~
搜索更多相关主题的帖子: 动画 演示 
2007-03-15 21:24
sgliuxiu
Rank: 5Rank: 5
等 级:贵宾
威 望:15
帖 子:291
专家分:0
注 册:2007-2-2
收藏
得分:0 

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


小猫说:给我10元钱
2007-03-15 22:37
fuliping
Rank: 1
等 级:新手上路
帖 子:81
专家分:0
注 册:2006-11-20
收藏
得分:0 
斑竹,你怎么知道我是小姑娘?
谢谢你的帮助,唯一遗憾的就是:
为什么是英文啊~~~~!!!!(请容许我号叫一声)

顺便问一下:这些英文资料都是在Delphi自带的帮助里面查道的吗?

不疯不魔不成活
2007-03-20 11:54
sgliuxiu
Rank: 5Rank: 5
等 级:贵宾
威 望:15
帖 子:291
专家分:0
注 册:2007-2-2
收藏
得分:0 
是的,都是delphi中帮助里面查到的.
我翻译一下:
procedure Play(FromFrame, ToFrame: Word; Count: Integer);
fromframe:是动画开始帧,toframe是最后一帧.toframe必须大于或者等于fromframe,且要小于等于帧数(framecount).
count是重复演示次数,如果=0的话,就会一直演示下去直到调用了stop方法.

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


小猫说:给我10元钱
2007-03-20 12:30
erlin
Rank: 1
等 级:新手上路
帖 子:29
专家分:0
注 册:2007-3-19
收藏
得分:0 
既然连这么厉害的斑竹都说英语不好,那我们...
能给介绍delnet帮助中文版的说或软件吗?
还有你猜猜我是小姑娘还是小男孩???
不要只看资料

人生上半场20年,拒人3次,被拒2次,目前3:2领先……
2007-03-23 18:26
sgliuxiu
Rank: 5Rank: 5
等 级:贵宾
威 望:15
帖 子:291
专家分:0
注 册:2007-2-2
收藏
得分:0 
楼上的,看你的签名档,肯定是boy了,哈。
telnet帮助还是delnet帮助?后者偶不会

小猫说:给我10元钱
2007-03-24 12:48
kmliap
Rank: 1
等 级:新手上路
帖 子:27
专家分:0
注 册:2008-11-12
收藏
得分:0 
谢谢版主翻译!!!!!!看到一大堆英语就头疼!!!!!
2008-11-12 11:29
快速回复:[求助]标准动画演示
数据加载中...
 
   



关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.014141 second(s), 8 queries.
Copyright©2004-2024, BCCN.NET, All Rights Reserved