Solved

Splash Screen

Posted on 1998-12-04
4
354 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

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 disable drag and drop of columns in a TVirtualStringTree 3 72
Convert Jpg /PNG To GIF 5 118
delphi prevent click fast 2 189
Convert a string into a TDateTime 5 50
Introduction The parallel port is a very commonly known port, it was widely used to connect a printer to the PC, if you look at the back of your computer, for those who don't have newer computers, there will be a port with 25 pins and a small print…
In this tutorial I will show you how to use the Windows Speech API in Delphi. I will only cover basic functions such as text to speech and controlling the speed of the speech. SAPI Installation First you need to install the SAPI type library, th…
This video shows how to remove a single email address from the Outlook 2010 Auto Suggestion memory. NOTE: For Outlook 2016 and 2013 perform the exact same steps. Open a new email: Click the New email button in Outlook. Start typing the address: …
A company’s greatest vulnerability is their email. CEO fraud, ransomware and spear phishing attacks are the no1 threat to a company’s security. Cybercrime is responsible for the largest loss of money to companies today with losses projected to r…

932 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now