程序启动时,先显示一幅图片然后进入操作界面,怎么办?(例如《金山词霸》)
解决方案 »
- 请问这段C++代码如何译成DELPHI的。。
- 求delphi插件,类似.net那样的,写个函数,会面会跟提示的,以前有用过,现在没有了
- 高分求助~是delphi2005 bug吗?
- 求助,delphi程序运行时间限制
- 从哪里可以下载安装制作软件InstallShield和Wise?
- Delphi版中秋节专贴
- 广州有没有月薪8000至12000的程序员?
- 怎样确定是什么程序或者进程调用了API呢!
- Fastreport预览和打印的结果怎么不一样的呢? 我用的某进销存软件里带的。
- lcase(我是小菜)你在吗?想向您讨教一下安装文件的制作!欢迎用过installshield的同志指教!
- 如何把一個應用程序做成dll,在另一應用程序裡調用它。
- 急救!!!ehlib怎么装??
建议作个无边框的form,然后定时关闭。
program Project2;
uses
Forms,
Unit1 in 'Unit1.pas' {Form1},
Unit2 in 'Unit2.pas' {Splash};{$R *.res}begin
Application.Initialize;
Splash:=TSplash.Create(Application); //创建Splash
Splash.Show; //显示Splash
Splash.Update; //更新Splash
Application.CreateForm(TForm1, Form1);
Splash.Free; //删除Splash
Application.Run;
end.unit Unit1;interfaceuses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, StdCtrls;type
TForm1 = class(TForm)
Label1: TLabel;
procedure FormCreate(Sender: TObject);
private
{ Private declarations }
public
{ Public declarations }
end;var
Form1: TForm1;implementation{$R *.dfm}procedure TForm1.FormCreate(Sender: TObject);
var
CurTime:LongWord;
DelayTime:LongWord;
begin
//设置延迟时间为5秒
DelayTime:=5000;
CurTime:=GetTickCount;
while(GetTickCount<(CurTime+DelayTime))do;
//在这儿可以加上应用程序的初始化过程
end;end.
unit Unit2;interfaceuses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, StdCtrls;type
TSplash = class(TForm)
Label1: TLabel;
private
{ Private declarations }
public
{ Public declarations }
end;var
Splash: TSplash;implementation{$R *.dfm}end.
类似以下:
Application.Initialize;
Application.Title := 'XXXX系统';
try
FromFlash := TFrmFlash.Create(Application);
FromFlash.Show;
Application.ProcessMessages;
finally
FromFlash.Close;
FromFlash.Free;
Application.CreateForm(TFromMain, FromMain);
Application.Run;
end;
由timer控制图片窗体隐藏的方式来达到效果