📄 huanyuan.pas
字号:
unit huanyuan;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, ComCtrls, StdCtrls, ExtCtrls;
// Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
//Dialogs, StdCtrls, ExtCtrls;
type
TForm25 = class(TForm)
Panel1: TPanel;
Label1: TLabel;
Button1: TButton;
Button2: TButton;
Bevel1: TBevel;
procedure Button1Click(Sender: TObject);
procedure Button2Click(Sender: TObject);
private
pb:TProgressBar;
{ Private declarations }
public
{ Public declarations }
end;
var
Form25: TForm25;
filename:widestring;
str:widestring;
implementation
uses filecopy;
{$R *.dfm}
procedure TForm25.Button1Click(Sender: TObject);
var
i,stepcount:integer;
begin
pb:=tprogressbar.Create(form23);
stepcount:=50000;
with pb do
begin
top:=form25.Panel1 .Top +100;
left:=form25.Panel1 .Left +20;
width:= 350;
height:=30;
try
parent:=form25;
min:=0;
max:=50000;
step:=1;
if copyfile(lpctstr('e:\ganbusystem.mdb'),lpctstr('d:\ganbusystem\ganbusystem.mdb'),false) then
begin
for i:= 1 to stepcount do stepit;
beep(); beep();beep();beep();beep();beep();
beep();
beep();
beep();
beep();
beep();
beep();
beep();
beep();
beep();
showmessage('恢复完毕!');
end
else
showmessage('恢复失败!');
finally
free;
end;
end;
end;
procedure TForm25.Button2Click(Sender: TObject);
begin
form25.Close;
end;
end.
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -