Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Delphi Programming question

Posted on 1997-09-24
3
Medium Priority
?
150 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

Ask an Anonymous Question!

Don't feel intimidated by what you don't know. Ask your question anonymously. It's easy! Learn more and upgrade.

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…
Objective: - This article will help user in how to convert their numeric value become words. How to use 1. You can copy this code in your Unit as function 2. than you can perform your function by type this code The Code   (CODE) The Im…
Want to learn how to record your desktop screen without having to use an outside camera. Click on this video and learn how to use the cool google extension called "Screencastify"! Step 1: Open a new google tab Step 2: Go to the left hand upper corn…
Is your data getting by on basic protection measures? In today’s climate of debilitating malware and ransomware—like WannaCry—that may not be enough. You need to establish more than basics, like a recovery plan that protects both data and endpoints.…
Suggested Courses

610 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