unit Unit1;interfaceuses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, StdCtrls, ExtCtrls, Buttons, ComCtrls;type
Tmainform = class(TForm)
RadioGroup1: TRadioGroup;
Animate1: TAnimate;
goBitBtn: TBitBtn;
stopBitBtn: TBitBtn;
BitBtn1: TBitBtn;
StaticText1: TStaticText;
Label1: TLabel;
procedure gobitbtnclick(sender:tobject);
procedure stopbitbtnclick(sender:tobject);
private
{ Private declarations }
public
{ Public declarations }
end;var
mainform: Tmainform;implementation{$R *.dfm}type
avikindarray=array[0..7] of tcommonavi;
avistringarray=array[0..7] of string;
const
avikinds:avikindarray=(
avicopyfile,
avicopyfiles,
avideletefile,
aviemptyrecycle,
avifindcomputer,
avifindfile,
avifindfolder,
avirecyclefile);
avistrings:avistringarray=
('复制文件',
'复制多个文件',
'删除文件',
'清空回收站文件',
'查找计算机',
'查找文件',
'查找文件夹',
'使用文件夹');
procedure tmainform.gobitbtnclick(sender:tobject);
animindex:integer;//为什么不对呀~~~晕啊//
begin
animindex:=radiogroup1.itemindex;
with animate1 do
begin
StaticText1.caption:=avistrings[animindex];
commonavi:=avikinds[animindex];
play(1,framecount,0);
end;
end;
procedure tmainform.stopbitbtnclick(sender:tobject);
begin
animate1.stop;
StaticText1.caption:='停止';
end;
end.
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, StdCtrls, ExtCtrls, Buttons, ComCtrls;type
Tmainform = class(TForm)
RadioGroup1: TRadioGroup;
Animate1: TAnimate;
goBitBtn: TBitBtn;
stopBitBtn: TBitBtn;
BitBtn1: TBitBtn;
StaticText1: TStaticText;
Label1: TLabel;
procedure gobitbtnclick(sender:tobject);
procedure stopbitbtnclick(sender:tobject);
private
{ Private declarations }
public
{ Public declarations }
end;var
mainform: Tmainform;implementation{$R *.dfm}type
avikindarray=array[0..7] of tcommonavi;
avistringarray=array[0..7] of string;
const
avikinds:avikindarray=(
avicopyfile,
avicopyfiles,
avideletefile,
aviemptyrecycle,
avifindcomputer,
avifindfile,
avifindfolder,
avirecyclefile);
avistrings:avistringarray=
('复制文件',
'复制多个文件',
'删除文件',
'清空回收站文件',
'查找计算机',
'查找文件',
'查找文件夹',
'使用文件夹');
procedure tmainform.gobitbtnclick(sender:tobject);
animindex:integer;//为什么不对呀~~~晕啊//
begin
animindex:=radiogroup1.itemindex;
with animate1 do
begin
StaticText1.caption:=avistrings[animindex];
commonavi:=avikinds[animindex];
play(1,framecount,0);
end;
end;
procedure tmainform.stopbitbtnclick(sender:tobject);
begin
animate1.stop;
StaticText1.caption:='停止';
end;
end.
解决方案 »
- SQLSERVER2000 事务处理异常 LOCKTYPE CURSORLOCATION
- 加入CSDN,QQ群,号为1445054为闲聊区,号1476111为技术讨论区
- QuickRep报表打印问题?在线等待!高手的清清一点!
- C/S结构开发的初级问题
- 如何检测按钮消息?急....
- 我想下载Delphi,至少是5.0以上的?
- 主窗口中调用dll中的一个子窗口时数据访问的问题
- 我想然函数返回一个数组,当这样声明却不能编译,请问该怎么办!!详细请进!
- HI这个函数常用吗?
- 请问如何让delphi2007中的memo控件能显示unicode编码的汉字呢?谢谢啊
- 请教,怎么直接用mci函数录音,不用控件
- 怎样调用一可执行文件?
修改
procedure tmainform.gobitbtnclick(sender:tobject);
var animindex:integer;
begin
animindex:=radiogroup1.itemindex;
with animate1 do
begin
StaticText1.caption:=avistrings[animindex];
commonavi:=avikinds[animindex];
play(1,framecount,0);
end;
end;