[lazarus] splash screen idea

Mattias Gaertner nc-gaertnma at netcologne.de
Thu Dec 18 09:40:55 EST 2003


On Thu, 18 Dec 2003 14:06:40 +0100  Vincent Snijders
<vslist at mail.cwazy.co.uk> wrote:

> On Thu, 18 Dec 2003 14:01:26 +0100
> LeVA <leva at az.isten.hu> wrote:
> 
> > Hello!
> > 
> > I want to create a nice splash screen for my project. Anybody have an 
> > idea how to do this in lazarus? I'm thinking about displaying a big 
> > image when starting the app, with the BorderStyle set to "bsnone". But
> > I don't know how to delay a form's closing. I mean I want to display
> > the form with the big image for 2 seconds, and after that I want to
> > close it. How could I do this? Or is there any simpler idea of making
> > splash screens?
> You might want to check the lazarus source code, because lazarus has a
> splash screen it self (didn't you notice?). 
> 
> Start in lazarus.pp.

The lazarus splash screen hides as soon as lazarus becomes idle (= ready for
input).
If you have a program, that starts very fast and you want the splash screen
to stay 2 seconds more, then create a TTimer in the Application.OnIdle
event.


Mattias






More information about the Lazarus mailing list