Hello! I want to create a nice splash screen for my project. Anybody have an idea how to…
Mattias Gaertner �rta:
Show quoted text 32 lines
Thanks but I can not understand what the lazarus.pp does with the splash unit. I can not understand the splash unit either. I was thinking about some easy howto for newbies about creating a splash screen. I am currently reading Kylix's help about creating splash screens. It tells me to create two forms. Set Form1's FormActivate event to do this:
if Startup then
begin
Startup := False;
SplashScreen.Show;
end;It says that, that startup is a constant, and it's declared in Form1's interface part. But in lazarus there is no such constant, thus I can not check if startup is true or false. I tried to create that variable myself, like this:
var
startup : boolean = true;I need to give this variable a starting value, or else the 'if' won't work. But lazarus complains about that declaration. It says, that I can not use the '= true'. Why? In delphi and kylix this works fine, and this is (I think) a very useful feature. But if lazarus doesn't support that kind of declaration, then I must use something else. But I don't know what. Is it possible that someone would be that nice, and write me an example, how to do a splash screen in lazarus? That would some kind of christmas gift for me :)
Thanks!
Daniel
