[Lazarus] What is main form? (Splash question)
Vojtěch Čihák
vojtech.cihak at atlas.cz
Fri May 8 18:11:47 CEST 2015
Thanks, I tried to look to Lazarus sources before but I don't where is *.lpr of Lazarus.
>So I suggest you
create the splash form after the main form, but show the splash form
before the main form.
It's possible, but purpose ofsplash screen is to fill the gap until main form is created ? :-)
V.
______________________________________________________________
> Od: Graeme Geldenhuys <mailinglists at geldenhuys.co.uk>
> Komu: <lazarus at lists.lazarus.freepascal.org>
> Datum: 08.05.2015 17:59
> Předmět: Re: [Lazarus] What is main form? (Splash question)
>
On 2015-05-08 16:46, Vojtěch Čihák wrote:
> It seems that after adding splash screen is FrmMain no longer considered
> as a main form.
As far as I know, the first form that gets created is considered the
"main form" and the one that controls the lifespan of the application.
When the main form closes, the application normally terminates.
In fpGUI I can simply assign a new instance to fpgApplication.MainForm,
but it doesn't seem like LCL as a MainForm property. So I suggest you
create the splash form after the main form, but show the splash form
before the main form.
I also suggest you take a look at what Lazarus IDE itself does. After
all, it displays a splash screen. Learn by example. ;-)
Regards,
- Graeme -
--
fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal
http://fpgui.sourceforge.net/ <http://fpgui.sourceforge.net/>
--
_______________________________________________
Lazarus mailing list
Lazarus at lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus <http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20150508/c66b015a/attachment-0003.html>
More information about the Lazarus
mailing list