Welcome, Guest
Username: Password: Remember me
CodeTyphon MS Windows (Win7, Win8.x, Win10 and Win11) OS Development, discussions and problems
  • Page:
  • 1

TOPIC:

Form 9 years 8 months ago #6874

  • Francisco Carlos Rodrigues
  • Francisco Carlos Rodrigues's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
  • Posts: 21
  • Thank you received: 0
Hi
I want to make a splash screen then a set formSTyle to fsSplash. The form disappeared.
Is it normal ?
Thanks
Win 7 64 bits

Please Log in or Create an account to join the conversation.

Form 9 years 8 months ago #6875

  • Tony_O_Gallos
  • Tony_O_Gallos's Avatar
  • Offline
  • Junior Member
  • Junior Member
  • Ελεύθερο λογισμικό ή θάνατος
  • Posts: 84
  • Thank you received: 23
Hi,
the purpose of this Form Style is to display a splash form during the loading time of the application (to show it is actually loading), then it vanishes...
Depending in how long it will take to initialize your app, it could flash or stay several seconds.

From Lazarus beta 0.9.2 released

- new FormStyle fsSplash to easily create splash screens
Usage: Just set FormStyle to fsSplash and move the form
to the top in the project options.

From How does FormStyle fsSplash work?

Is it meant to run automatically as the first form and disappear when the main form is activated?
- Yes


If you need a minimal time of display, you could a component like SplashAbout or use a trick like this one .

Hoping it will help you :)

Please Log in or Create an account to join the conversation.

Form 9 years 8 months ago #6885

  • Francisco Carlos Rodrigues
  • Francisco Carlos Rodrigues's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
  • Posts: 21
  • Thank you received: 0
Hi Tony
Thank you.
I did a splash screen set formstyle = fsNormal and borderstyle to bsnone.
But I dont know why the form disappear (at design time) when i set formstyle=fssplash.
Thanks.
Fco

Please Log in or Create an account to join the conversation.

Form 9 years 2 months ago #8054

  • zbyna
  • zbyna's Avatar
  • Offline
  • Junior Member
  • Junior Member
  • Posts: 33
  • Thank you received: 2
Same problem: the form disappear at design time

Please Log in or Create an account to join the conversation.

Form 9 years 2 months ago #8056

  • Tony_O_Gallos
  • Tony_O_Gallos's Avatar
  • Offline
  • Junior Member
  • Junior Member
  • Ελεύθερο λογισμικό ή θάνατος
  • Posts: 84
  • Thank you received: 23
fsSplash makes my Typhon crash with embeded designer mode, but ok without.
Just use F12 to make it appear when needed.
Or you can let it as fsNormal, and set fsSplash only at run time.

Please Log in or Create an account to join the conversation.

Form 9 years 2 months ago #8057

  • zbyna
  • zbyna's Avatar
  • Offline
  • Junior Member
  • Junior Member
  • Posts: 33
  • Thank you received: 2
F12 does not work even in embeded designer mode

Please Log in or Create an account to join the conversation.

  • Page:
  • 1