?
Solved

Delphi Programming question

Posted on 1997-09-24
3
Medium Priority
?
149 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

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

A lot of questions regard threads in Delphi.   One of the more specific questions is how to show progress of the thread.   Updating a progressbar from inside a thread is a mistake. A solution to this would be to send a synchronized message to the…
The uses clause is one of those things that just tends to grow and grow. Most of the time this is in the main form, as it's from this form that all others are called. If you have a big application (including many forms), the uses clause in the in…
In this brief tutorial Pawel from AdRem Software explains how you can quickly find out which services are running on your network, or what are the IP addresses of servers responsible for each service. Software used is freeware NetCrunch Tools (https…
Sometimes it takes a new vantage point, apart from our everyday security practices, to truly see our Active Directory (AD) vulnerabilities. We get used to implementing the same techniques and checking the same areas for a breach. This pattern can re…
Suggested Courses
Course of the Month11 days, 4 hours left to enroll

770 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