Posted by Martin Jackson on October 18, 2000
In Reply to: How do I make a splash screen? posted
by Marcus on October 16, 2000
First of all, design the splash screen form, and remove it from the Auto-Create forms ( in project options ). Now you need to modify the project source.
In Delphi 4, click Project - View Source from the Delphi main menu ( In Delphi 3, I think it's View - Project Source ). Modify the code to mimic that shown below ( Replace TfrmSplash and frmSplash with the name and class of your splash screen ):
begin frmSplash := TfrmSplash.Create( Application ); frmSplash.show; frmSplash.Update; try Application.Initialize; // Auto-create forms Application.CreateForm(TForm1, Form1); finally frmSplash.Free; Application.Run; end; end.