Delphi - Knowledge Base Home  About Us  .Net  Solutions  Microsoft  Extras  Contact Us  Freeware  

Topics

Our Delphi article links are shown below. Simply click a link to get started..
 
Delphi Home
Link to this page



Popular Articles

1. Registry walk through & best practice

2. Using the Microsoft Word COM interface

3. Using the Microsoft Excel COM interface

4. Creating & Using Lookup Forms in Delphi

5. Using encryption in your applications

6. Creating and using splash screens in Delphi

7. Using Dev Express to mimic .NET & XP Styles

8. Using the Microsoft Outlook COM interface


  





Delphi - Splash Screens (2)

Ok lets look at how we created the splash form.

A splash form is just an ordinary form with some specific properties. These properties give the illusion that the splash form is a floating image just like the Microsoft Word example. To create this look and feel we need to set a few properties for the form. These properties are:

BorderStyle - we must set this to 'bsSingle' to stop the user trying to maximize, minimize or resize the splash screen

FormStyle - set this to 'fsStayOnTop'. This ensures that the splash form stays on top of all other forms.

Position - If you don't want to use the designed position we recommend that you set this to 'poDeskTopCenter'. This will make the form appear in the centre of the users desktop. Since users cannot move or resize the form, this is where it'll stay until we choose to hide it.

All other display properties for the form should remain as default, you don't need to change them.

Next lets take a look at what components we placed on our splash screen form. We'll, as you can see from the example we have added an image which is our company logo (with a little phrase of course). Two label controls, one with the version number and the other one to show the loading progress of the application. We have named the loading progress label 'lLoading' which we refer to in our code. That's just about it, so far so simple.

So we've seen the design of the splash screen lets now take a look at the code behind the form:

We have created our own constructor:

constructor TFSplashForm.Create(AOwner: TComponent);
begin
   inherited Create(AOwner);
end;

We have also created an update method which allows us to increase the progress of the progress label. The label isn't in fact any special kind of label, we are just going to set its caption property to make it appear that the application is progressing by the use of dots (...). To make things easier we will refer to the progress dots (...) as a progress bar from now on.



 Back (Page 1)  Next (Page 3)

Featured

Other popular Delphi resources. Why not try them for yourself?



                   


    

Extras Microsoft Practice Exams Software Directory Music Tracks Net Components Windows Process
Web Hosting Delphi Amiga Games Processos de Windows Braindumps
Buy Products Latest Reviews Absolute Adsense Free Web Templates

  Home  Links  About Us
Copyright © Accelerated Ideas 2005-2008
All rights reserved.


Delphi Knowledge Base. Best practices, walkthroughs, tutorials, component advice and more. Solutions and professional designs for Delphi 4, Delphi 5, Delphi 6 and Delphi, 7. Word COM, Excel COM, Outlook COM including code examples for Word OLE, Excel OLE and Outlook OLE. Automating Outlook to create MailItem and send attachments in Delphi. ActiveX, Com. ADO Data Architecture, TMS component pack walk through and code examples. Using Developer Express and example walkthroughs. Date & time conversion routines, video playback and frame manipulation. COM articles, papers, tips, techniques and hints. How to create Word reports and excel spreadsheets using Delphi code and OLE automation. Understanding Delphi encryption and using ciphers, with source code examples of Blowfish, Twofish, and Rijndael. Securing application data and confidential information using open source encryption components. Free encryption dll component. Accessing and managing MS Excel sheets with Delphi. How to retrieve, display and edit Microsoft Excel spreadsheets with Delphi automation. Accessing and managing MS Word documents with Delphi. How to retrieve, display and edit Microsoft Word documents using Delphi automation. Read and write Excel spreadsheets using Delphi code. How to read and write registry entries using Delphi code. Source code examples using Delphi 5, Delphi 6 and Delphi 7. Working with VCL Developer Express components. How to apply grid styles and themes to Delphi applications. Using image columns and shading to improve the grid and treeview appearances. Including examples from ExpressQuantumPack, for Delphi, ExpressPack for Delphi. Developer guides for Developer Express components. All our articles are written by our senior Delphi professionals to help you get the best from your legacy Delphi applications