unit Unit8;interfaceuses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, StdCtrls, ComCtrls, jpeg, ExtCtrls;type
Tloading = class(TForm)
Image1: TImage;
ProgressBar1: TProgressBar;
Label4: TLabel;
Label1: TLabel;
Label2: TLabel;
Label3: TLabel;
Timer1: TTimer;
procedure Timer1Timer(Sender: TObject);
private
{ Private declarations }
public
{ Public declarations }
end;var
loading: Tloading;implementation{$R *.dfm}procedure Tloading.Timer1Timer(Sender: TObject);
beginend;end.
請就上面的代碼進行修改
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, StdCtrls, ComCtrls, jpeg, ExtCtrls;type
Tloading = class(TForm)
Image1: TImage;
ProgressBar1: TProgressBar;
Label4: TLabel;
Label1: TLabel;
Label2: TLabel;
Label3: TLabel;
Timer1: TTimer;
procedure Timer1Timer(Sender: TObject);
private
{ Private declarations }
public
{ Public declarations }
end;var
loading: Tloading;implementation{$R *.dfm}procedure Tloading.Timer1Timer(Sender: TObject);
beginend;end.
請就上面的代碼進行修改
解决方案 »
- 读配置文件的时候为什么会出现,读出的小节是一些系统配置文件?
- 有哪位懂DBGridEH控件如何实现插入行和复制行记录?
- 一个问题,请高手指点哦!
- D2005 ,D8比D7 多了那些功能?
- 如何得到当前的目录~~~
- 大家有没有编写或保存ico的程序源码呢?小弟找了很久,好象delphi没有这方面的例子。在线等待。
- 我该怎么做!
- 可用分只够问一个问题:我修改了VCL部分源代码,怎么生效?
- 查询数据库的代码错误,请各位帮忙分析一下!
- 有没有用DELPHI写的VPN连接及断开的程序呀?100分
- 在画布上画一个规则的多边形,并填充颜色,怎么实现??
- 为什么有的客户端能自动注册ocx控件,有少数客户端不能自动注册ocx控件?
Little2000(Rainy) ,是這樣嗎/?
procedure Tloading.Timer1Timer(Sender: TObject);
begin
timer1.interval:=4000;
timer1.enabled:=false;
end;可是還是不行阿
請明示.
begin
Mutex:=CreateMutex(NIL,True,'SingleApp');
IF GetLastError<>ERROR_ALREADY_EXISTS THEN
Begin
Application.Initialize;
formwellcome:=tformwellcome.Create(formwellcome);
formwellcome.Show;
sleep(4000);Application.CreateForm(TDM1, DM1);
Application.CreateForm(TFormjxcMaster, FormjxcMaster);
Application.CreateForm(TFormlogin, Formlogin);
formwellcome.Hide ;
formwellcome.Free ;
formlogin.ShowModal ;
if formlogin.ModalResult=1 then
Application.Run;
end;
ReleaseMutex(Mutex);
program Project1;uses
Forms,
Unit1 in 'Unit1.pas' {mainfrm},
Unit2 in 'Unit2.pas' {manage},
Unit3 in 'Unit3.pas' {chaxun},
Unit4 in 'Unit4.pas' {xiugaimima},
Unit5 in 'Unit5.pas' {addbeipin},
Unit6 in 'Unit6.pas' {chaxunnew},
Unit7 in 'Unit7.pas' {modify},
Unit8 in 'Unit8.pas' {loading};{$R *.res}begin
Application.Initialize;
loading:=Tloading.create(loading);
loading.show;
sleep(4000); loading.update;
Application.CreateForm(Tmainfrm, mainfrm);
loading.progressbar1.position:=15;
Application.CreateForm(Tchaxun, chaxun);
loading.progressbar1.position:=50;
Application.CreateForm(Taddbeipin, addbeipin);
loading.progressbar1.position:=55;
Application.CreateForm(Tmodify, modify);
loading.progressbar1.position:=75;
Application.CreateForm(Txiugaimima, xiugaimima);
loading.progressbar1.position:=90;
Application.CreateForm(Tchaxunnew, chaxunnew);
loading.progressbar1.position:=100;
Application.CreateForm(Tmanage, manage);
loading.hide;
loading.free;
Application.Run;
end.
begin
Application.Initialize;
loading:=Tloading.create(loading);
loading.show;
loading.update;
Application.CreateForm(Tmainfrm, mainfrm);
loading.progressbar1.position:=15;
Application.CreateForm(Tchaxun, chaxun);
loading.progressbar1.position:=50;
Application.CreateForm(Taddbeipin, addbeipin);
loading.progressbar1.position:=55;
Application.CreateForm(Tmodify, modify);
loading.progressbar1.position:=75;
Application.CreateForm(Txiugaimima, xiugaimima);
loading.progressbar1.position:=90;
Application.CreateForm(Tchaxunnew, chaxunnew);
loading.progressbar1.position:=100;
Application.CreateForm(Tmanage, manage);
loading.hide;
loading.free;
Application.Run;
end.
program Project1;uses
Forms,
Unit1 in 'Unit1.pas' {mainfrm},
Unit2 in 'Unit2.pas' {manage},
Unit3 in 'Unit3.pas' {chaxun},
Unit4 in 'Unit4.pas' {xiugaimima},
Unit5 in 'Unit5.pas' {addbeipin},
Unit6 in 'Unit6.pas' {chaxunnew},
Unit7 in 'Unit7.pas' {modify},
Unit8 in 'Unit8.pas' {loading};{$R *.res}begin
Application.Initialize;
loading:=Tloading.create(loading);
loading.show;
loading.update;
Application.CreateForm(Tmainfrm, mainfrm);
loading.progressbar1.position:=15;
Application.CreateForm(Tchaxun, chaxun);
loading.progressbar1.position:=50;
Application.CreateForm(Taddbeipin, addbeipin);
loading.progressbar1.position:=55;
Application.CreateForm(Tmodify, modify);
loading.progressbar1.position:=75;
Application.CreateForm(Txiugaimima, xiugaimima);
loading.progressbar1.position:=90;
Application.CreateForm(Tchaxunnew, chaxunnew);
loading.progressbar1.position:=100;
Application.CreateForm(Tmanage, manage);
loading.hide;
loading.free;
Application.Run;
end.
begin
Splash_Form:=TSplash_Form.Create(nil);
Splash_Form.Show;
Splash_Form.Update;
time1:=now;
repeat until time1+StrToTime('00:00:1')<=now;
//延时1S,可以定义启动画面延时的时间,
//当所有的窗体装载完成后,创建主窗口。
Application.Initialize;
Application.CreateForm(TMainForm, MainForm);
uses SysUtils;
在Application.Initialize;后面加上
sleep(4000);