我想在我的主程序运行之前添加一个启动窗口,请问怎样做?谢过
解决方案 »
- 一口气用了六个stringlist来保存传递数组,请谈谈感想和建议
- 这是什么意思啊!!!
- 分布式结构在网页上存取数据问题????急急!!!!
- QuickReport 如何分页打印
- 类似ListView的report类型的控件,有Checkbox的吗?
- 真奇怪啊?
- 我想关闭一些运行的进程(运行之中)
- BDE的BatchMove好用吧!但它只适用于BDE,有谁知道有什么构件可以适用任何数据访问呢?
- 关于clinetsocket和serversocket的问题
- 河南统计年鉴2011——2015年excle版
- 安装程序的制作问题
- 昨天装了ADO2.8,可导致我所有的用ADO连接的程序都运行不了。怎么办?
//Timer1.Interval 为3000,意为显示3秒
unit flash;interfaceuses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, ExtCtrls, jpeg, StdCtrls;type
Tfrmflash = class(TForm)
Image1: TImage;
Timer1: TTimer;
Timer2: TTimer;
Label1: TLabel;
procedure Timer1Timer(Sender: TObject);
procedure Timer2Timer(Sender: TObject);
procedure FormCreate(Sender: TObject);
private
{ Private declarations }
public
{ Public declarations }
end;var
frmflash: Tfrmflash;implementation{$R *.dfm}procedure Tfrmflash.FormCreate(Sender: TObject);
begin
label1.Caption := '系统启动中.';
end;procedure Tfrmflash.Timer1Timer(Sender: TObject);
begin
frmflash.ModalResult := mrok;
end;procedure Tfrmflash.Timer2Timer(Sender: TObject);
begin
label1.Caption := label1.Caption + '.';
end; end.2.工程文件:
program Pro01;uses
Forms,
Controls,
test01 in 'test01.pas' {frmmain},
flash in 'flash.pas' {frmflash};{$R *.res}begin
Application.Initialize;
frmflash := Tfrmflash.Create(Application);
frmflash.ShowModal;
if (frmflash.ModalResult = mrok) then
begin
Application.Title := '测试Splash窗体';
Application.CreateForm(Tfrmmain, frmmain);
frmflash.Hide;
frmflash.Release;
Application.Run;
end;
end.