[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

Delphi Programming question

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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Introduction The parallel port is a very commonly known port, it was widely used to connect a printer to the PC, if you look at the back of your computer, for those who don't have newer computers, there will be a port with 25 pins and a small print…
Introduction Raise your hands if you were as upset with FireMonkey as I was when I discovered that there was no TListview.  I use TListView in almost all of my applications I've written, and I was not going to compromise by resorting to TStringGrid…
In a question here at Experts Exchange (https://www.experts-exchange.com/questions/29062564/Adobe-acrobat-reader-DC.html), a member asked how to create a signature in Adobe Acrobat Reader DC (the free Reader product, not the paid, full Acrobat produ…
Whether it be Exchange Server Crash Issues, Dirty Shutdown Errors or Failed to mount error, Stellar Phoenix Mailbox Exchange Recovery has always got your back. With the help of its easy to understand user interface and 3 simple steps recovery proced…
Suggested Courses

834 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