線上訂房服務-台灣趴趴狗聯合訂房中心
發文 回覆 瀏覽次數:951
推到 Plurk!
推到 Facebook!

自己創造出Logo的form如何讓他show出時間久一點

尚未結案
Target.ccie
一般會員


發表:6
回覆:2
積分:1
註冊:2006-07-15

發送簡訊給我
#1 引用回覆 回覆 發表時間:2006-07-19 16:05:43 IP:61.223.xxx.xxx 未訂閱

我在專案檔中將我自己作的form show出來

是照書本上的方式,但是show出的時間卻不久

馬上就消失了,請問一下,如果要讓時間加長的話

要用哪種方式

te_hsun
一般會員


發表:43
回覆:34
積分:20
註冊:2002-03-25

發送簡訊給我
#2 引用回覆 回覆 發表時間:2006-07-19 22:51:56 IP:218.168.xxx.xxx 未訂閱

是不是要問這個?

試試看...我還沒試...應該可以吧
應該也有很多很多的方法...

program project;

uses
Forms,
Unit_main in 'Unit_main.pas' {Form_main},
Unit_Splash in 'Unit_Splash.pas' {Form_Splash};

{$R *.res}

begin

Application.Initialize;
Application.Title := '???';

Form_Splash:= TForm_Splash.Create(Application);
try
Form_Splash.Show;
Form_Splash.Update;
Application.CreateForm(TForm_main, Form_main);
finally
Form_Splash.Pause;
Form_Splash.Hide;
Form_Splash.Free;
Application.Run;
end;
end.


unit Unit_Splash;

interface

uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, StdCtrls, ExtCtrls;

type
TForm_Splash = class(TForm)
private
{ Private declarations }
public
procedure Pause;
end;

var
Form_Splash: TForm_Splash;

implementation

{$R *.dfm}

{ TForm_Splash }

procedure TForm_Splash.Pause;
begin
Sleep(1000);
end;

end.

系統時間:2024-05-02 8:36:54
聯絡我們 | Delphi K.Top討論版
本站聲明
1. 本論壇為無營利行為之開放平台,所有文章都是由網友自行張貼,如牽涉到法律糾紛一切與本站無關。
2. 假如網友發表之內容涉及侵權,而損及您的利益,請立即通知版主刪除。
3. 請勿批評中華民國元首及政府或批評各政黨,是藍是綠本站無權干涉,但這裡不是政治性論壇!