Solved

Delphi Programming question

Posted on 1997-09-24
3
138 Views
Last Modified: 2010-04-04
Is it possible to view a start-up picture when executing an application, like most known programs (Word,Excel,Delphi etc.). Word for example, shows a small picture where you can read the software version, who installed the software, and so on. I think there must be a special procedure for this, but I cannot find it.

I run Delphi Developer 2.0.

Thanks!
Erik N

0
Comment
Question by:Erik N
3 Comments
 
LVL 8

Accepted Solution

by:
ZifNab earned 0 total points
ID: 1346163
Hi Erik N,

We call it a splash screen. Here's the code :

Put it in your Project source code :

program Sensi32;


uses
  Forms,
  MainSensi in 'MainSensi.pas' {fMaster},
  Splash in 'Splash.pas' {SplashForm},

{$R *.RES}

begin
  Application.Initialize;
  Splashform := TSplashForm.Create(Application);
  SplashForm.Show;
  Splashform.Update;
  Application.CreateForm(TfMaster, fMaster);
  Application.Run;
end.

The code for the splash form :

 It's like all forms, to make it more splash use borderstyle bsNone.
 Put also a timer on it. If you don't use a timer you have to remove the splashform yourself (in the project source code).

unit Splash;

interface

uses
  Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs,
  ExtCtrls;

type
  TSplashForm = class(TForm)
    Panel1: TPanel;
    Image1: TImage;
    Timer1: TTimer;
    procedure Timer1Timer(Sender: TObject);
  private
    { Private declarations }
  public
    { Public declarations }
  end;

var
  SplashForm: TSplashForm;

implementation

{$R *.DFM}

procedure TSplashForm.Timer1Timer(Sender: TObject);
begin
 Close;
end;

end.

Need more help, or example files? Just ask.

Have fun,
ZifNab;
0
 

Expert Comment

by:krisz
ID: 1346165
Just a note.

It's good to free the splash form, because it's not needed
after startup.
0
 

Author Comment

by:Erik N
ID: 1346164
Thank you dfor this, ZifNab!

Erik N

0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

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…
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…
This video discusses moving either the default database or any database to a new volume.
This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…

760 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

18 Experts available now in Live!

Get 1:1 Help Now