Articles   Members Online:
-Article/Tip Search
-News Group Search over 21 Million news group articles.
-Delphi/Pascal
-CBuilder/C++
-C#Builder/C#
-JBuilder/Java
-Kylix
Member Area
-Home
-Account Center
-Top 10 NEW!!
-Submit Article/Tip
-Forums Upgraded!!
-My Articles
-Edit Information
-Login/Logout
-Become a Member
-Why sign up!
-Newsletter
-Chat Online!
-Indexes NEW!!
Employment
-Build your resume
-Find a job
-Post a job
-Resume Search
Contacts
-Contacts
-Feedbacks
-Link to us
-Privacy/Disclaimer
Embarcadero
Visit Embarcadero
Embarcadero Community
JEDI
Links
How to create a splash screen Turn on/off line numbers in source code. Switch to Orginial background IDE or DSP color Comment or reply to this aritlce/tip for discussion. Bookmark this article to my favorite article(s). Print this article
07-Sep-03
Category
Others
Language
Delphi 3.x
Views
200
User Rating
10
# Votes
1
Replies
0
Publisher:
DSP, Administrator
Reference URL:
DKB
			Author: Erwin Molendijk

How do I make a splash screen for my application?

Answer:

First make a new form, this will be your SpashSreen. 

Set Name to "Splash". 
Set BorderStyle to "bsNone". 
Put an image or whatever on it. 
Make sure it is not auto-created. (Shift-Ctrl-F11) 
Now edit your main program body: 

1   program MyApp;
2   {... }
3   begin
4     Application.Initialize;
5   
6     { ---------- PUT THIS IN: ------------- }
7     Splash := TSplash.Create(Application);
8     Splash.Show;
9     Splash.Refresh;
10    { ------------------------------------- }
11  
12    ..
13      Application.CreateForm(...);
14      Application.Run;
15  end;


Now edit the OnShow event of your main form: 

16  procedure TMainForm.FormShow(Sender: TObject);
17  begin
18    {...}
19    { Free Splash screen }
20    Splash.Free;
21  end;


You now have a splash screen! 
Tip: If you place the Spash.Free in a OnTimer event, you can control how long the user sees your splash screen. 

			
Vote: How useful do you find this Article/Tip?
Bad Excellent
1 2 3 4 5 6 7 8 9 10

 

Advertisement
Share this page
Advertisement
Download from Google

Copyright © Mendozi Enterprises LLC