Hi StevenK,
I got the splash screen working !!!
It was very easy in fact !!!
The project file looks like this now.
*==========================================*
program Project1;
uses
Forms,
Unit1 in 'Unit1.pas' {Form1},
Unit2 in 'Unit2.pas' {SplashScreen};
{$R *.RES}
begin
Application.Initialize;
Application.Title := 'CWCon Head Tag Generator';
Application.CreateForm(TSplashScreen, SplashScreen);
SplashScreen.Show;
Application.Run;
end.
*==========================================*
and the Splashscreen unit :
*==========================================*
unit Unit2;
interface
uses
Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs,
ExtCtrls;
type
TSplashScreen = class(TForm)
Panel1: TPanel;
Image1: TImage;
Timer1: TTimer;
procedure Timer1Timer(Sender: TObject);
private
{ Private declarations }
public
{ Public declarations }
end;
var
SplashScreen: TSplashScreen;
implementation
uses Unit1;
{$R *.DFM}
procedure TSplashScreen.Timer1Timer(Sender: TObject);
begin
SplashScreen.Hide;
Application.CreateForm(TForm1, Form1);
SplashScreen.Free;
end;
end.
*==========================================*
I found that it gave me more control in this way.
But it was your code that gave me the idea in the
first place, so thanx allot.
BobbaFet Everyone has a right to my opinion.
E-mail me at
cwcon@programmer.net