[Lazarus] What is main form? (Splash question)

Giuliano Colla giuliano.colla at fastwebnet.it
Fri May 8 20:13:16 CEST 2015


Il 08/05/2015 17:46, Vojtěch Čihák ha scritto:
> Is it bug? Or do I something wrong?

The following code (where form2 is the splash screen) works fine under 
Lazarus

>   RequireDerivedFormResource := True;
>   Application.Initialize;
>   Form2 := TForm2.Create(Nil);
>   Form2.Show;
>   Form2.Update;
>   Application.ProcessMessages;
>   Sleep(3000);
>   Application.CreateForm(TForm1, Form1);
>   Form2.Hide;
>   Form2.Free;
>   Application.Run;
You may use as a guideline for your purposes

Giuliano





More information about the Lazarus mailing list