Solved

Splash Screen

Posted on 1998-12-04
4
360 Views
Last Modified: 2010-04-04
How do I create a splash screen in Delphi 4?
0
Comment
Question by:cavalry
  • 2
4 Comments
 
LVL 12

Accepted Solution

by:
rwilson032697 earned 10 total points
ID: 1349335
Create a form with no borders (borderstyle = bsNone) or title bar.

In your project (.DPR file) do this:

Var
  TheSplash : TMySplashForm;

Application.Initialise;

TheSplash := TMySplashForm.Create(Application) do
TheSplash.Show;
TheSplash.Update;

// Do all your other form creating etc here

TheSplash.Close;
TheSplash.Free;

Application.Run;

Cheers,

Raymond.
0
 

Author Comment

by:cavalry
ID: 1349336
Thanks Ray, that works, but how do I create say a 2 second delay before the logo disappears, at the moment it shows and disappears in an instant.
0
 
LVL 10

Expert Comment

by:viktornet
ID: 1349337
add Windows to your uses clause and do this.,,

sleep(5000); //5 seconds...

Cheers,
Viktor
0
 
LVL 12

Expert Comment

by:rwilson032697
ID: 1349338
That'll do it!
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
How to convert wav to mp3 in delphi 9 219
Delphi: how to send PJL commands to printer 3 108
add combobox item based on numbers 9 154
LAN or WAN ? 11 95
Creating an auto free TStringList The TStringList is a basic and frequently used object in Delphi. On many occasions, you may want to create a temporary list, process some items in the list and be done with the list. In such cases, you have to…
Hello everybody This Article will show you how to validate number with TEdit control, What's the TEdit control? TEdit is a standard Windows edit control on a form, it allows to user to write, read and copy/paste single line of text. Usua…
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…

792 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question