<p style="padding:0 0 0 0; margin:0 0 0 0;">Thanks, I tried to look to Lazarus sources before but I don't where is *.lpr of Lazarus.</p>
<p style="padding:0 0 0 0; margin:0 0 0 0;"> </p>
<p style="padding:0 0 0 0; margin:0 0 0 0;">><span style="font-size: 10pt;">So I suggest you</span></p>
<p style="padding:0 0 0 0; margin:0 0 0 0;">create the splash form after the main form, but show the splash form<br />
before the main form.</p>
<p style="padding:0 0 0 0; margin:0 0 0 0;"> </p>
<p style="padding:0 0 0 0; margin:0 0 0 0;">It's possible, but purpose ofsplash screen is to fill the gap until main form is created ? :-)</p>
<p style="padding:0 0 0 0; margin:0 0 0 0;"> </p>
<p style="padding:0 0 0 0; margin:0 0 0 0;">V.</p>
<p style="padding:0 0 0 0; margin:0 0 0 0;">______________________________________________________________<br />
> Od: Graeme Geldenhuys <mailinglists@geldenhuys.co.uk><br />
> Komu: <lazarus@lists.lazarus.freepascal.org><br />
> Datum: 08.05.2015 17:59<br />
> Předmět: Re: [Lazarus] What is main form? (Splash question)<br />
></p>
<p style="padding:0 0 0 0; margin:0 0 0 0;">On 2015-05-08 16:46, Vojtěch Čihák wrote:<br />
> It seems that after adding splash screen is FrmMain no longer considered<br />
> as a main form.<br />
<br />
As far as I know, the first form that gets created is considered the<br />
"main form" and the one that controls the lifespan of the application.<br />
When the main form closes, the application normally terminates.<br />
<br />
In fpGUI I can simply assign a new instance to fpgApplication.MainForm,<br />
but it doesn't seem like LCL as a MainForm property. So I suggest you<br />
create the splash form after the main form, but show the splash form<br />
before the main form.<br />
<br />
I also suggest you take a look at what Lazarus IDE itself does. After<br />
all, it displays a splash screen. Learn by example. ;-)<br />
<br />
Regards,<br />
- Graeme -<br />
<br />
-- <br />
fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal<br />
<a href="http://fpgui.sourceforge.net/">http://fpgui.sourceforge.net/</a><br />
<br />
--<br />
_______________________________________________<br />
Lazarus mailing list<br />
Lazarus@lists.lazarus.freepascal.org<br />
<a href="http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus">http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus</a></p>