Lazarus
Home
Help
TinyPortal
Search
Login
Register
Lazarus
»
Forum
»
Miscellaneous
»
Suggestions
»
LCL
»
SplashForm - what I have to do?
Free Pascal
Website
Downloads
Wiki
Documentation
Bugtracker
Mailing List
Lazarus
Website
Downloads (Laz+FPC)
Packages (OPM)
FAQ
Wiki
Documentation (RTL/FCL/LCL)
Bugtracker
CCR Bugs
GIT
Mailing List
Other languages
Foundation
Website
Useful Wiki Links
Project Roadmap
Getting the Source
Screenshots
How to use the forum
Forum Rules
About donations (wiki)
Bookstore
Computer Math and Games in Pascal
(preview)
Lazarus Handbook
Search
Advanced search
Recent
88 year D. Knuth changes ...
by
valdir.marcos
[
Today
at 11:51:53 pm]
TChart: Wrong default val...
by
wp
[
Today
at 10:14:38 pm]
Pipewire API
by
Fred vS
[
Today
at 10:11:02 pm]
interface and GUID someth...
by
valdir.marcos
[
Today
at 10:05:56 pm]
Hello! Anything new?
by
PascalDragon
[
Today
at 09:39:09 pm]
TSplitter color property ...
by
valdir.marcos
[
Today
at 09:20:11 pm]
Pocketbase
by
steve612
[
Today
at 09:10:08 pm]
ShortStrings vs long stri...
by
valdir.marcos
[
Today
at 08:55:02 pm]
Lazarus Bugfix Release 4....
by
dsiders
[
Today
at 08:53:38 pm]
Any way to "embed" Window...
by
valdir.marcos
[
Today
at 08:42:31 pm]
LazPaint (alpha-blending,...
by
CM630
[
Today
at 08:38:30 pm]
Z80 ZX Spectrum and Syste...
by
d2010
[
Today
at 07:58:28 pm]
could Ardour's YTK be use...
by
fifr
[
Today
at 07:29:40 pm]
Qt6/Wayland clipboard: pa...
by
valdir.marcos
[
Today
at 06:27:22 pm]
[ANN] PasBuild 1.5.0 rele...
by
valdir.marcos
[
Today
at 06:19:54 pm]
Synchronizing Lazarus pro...
by
valdir.marcos
[
Today
at 05:46:58 pm]
class not found
by
SA.Blackmon
[
Today
at 05:27:32 pm]
Register global hotkey
by
Thaddy
[
Today
at 04:20:28 pm]
Crystal report edit
by
Petrus Vorster
[
Today
at 03:12:59 pm]
Faster asin() Was Hiding ...
by
MathMan
[
Today
at 01:58:30 pm]
[ANN] PasBuild 1.6.0 rele...
by
Graeme
[
Today
at 12:19:30 pm]
Debian removes FPC/Lazaru...
by
dbannon
[
Today
at 08:44:10 am]
[revisited] triple click
by
dbannon
[
Today
at 07:45:14 am]
Extended Module Player
by
Gigatron
[March 11, 2026, 11:33:54 pm]
A collection of daily *NI...
by
Roland57
[March 11, 2026, 06:40:37 pm]
« previous
next »
Print
Pages: [
1
]
Author
Topic: SplashForm - what I have to do? (Read 8250 times)
JanH
Guest
SplashForm - what I have to do?
«
on:
February 27, 2006, 12:27:58 pm »
What else I have to do to see a splash form on loading my app? I have created a form, set its formstyle to fsSplash, put a label on it and saved it.
But when I start the program, OnShow of this splash form never be called. :-(
Logged
glober
Full Member
Posts: 130
SplashForm - what I have to do?
«
Reply #1 on:
February 28, 2006, 03:35:01 am »
Try following this guide:
http://delphi.about.com/od/formsdialogs/a/splashscreen.htm
. The only thing I recommend you change is to replace
SplashScreen := TSplashScreen.Create(Application);
with
SplashScreen := TSplashScreen.Create(nil);
This doesn't kill the application under Windows, if you free the SplashScreen, If I recall corectly.
HTH
Logged
mattias
Administrator
Full Member
Posts: 207
SplashForm - what I have to do?
«
Reply #2 on:
February 28, 2006, 11:58:51 am »
The Delphi approach will not work on all platforms.
Add this in your .lpr file after the Application.Initialize:
SplashForm := TSplashForm.Create(nil);
SplashForm.Show;
Application.ProcessMessages; // process splash paint message
Logged
Marc
Administrator
Hero Member
Posts: 2674
SplashForm - what I have to do?
«
Reply #3 on:
February 28, 2006, 12:16:12 pm »
Maybe note to us:
when using SplashScreen := TSplashScreen.Create(Application);
TApplication can check if the form is a splashform and show it and skip setting it as mainform.
Logged
//--
{$I stdsig.inc}
//-I still can't read someones mind
//-Bugs reported here will be forgotten. Use the
bug tracker
JanH
Guest
SplashForm - what I have to do?
«
Reply #4 on:
February 28, 2006, 02:03:38 pm »
thanx for all the help.
I thought there was a mechanism wich shows a splash form automatically.
Logged
Print
Pages: [
1
]
« previous
next »
Lazarus
»
Forum
»
Miscellaneous
»
Suggestions
»
LCL
»
SplashForm - what I have to do?
TinyPortal
© 2005-2018