[Lazarus] RE : Forms in DLL
Michael Schnell
mschnell at lumino.de
Wed Aug 10 13:14:18 CEST 2011
On 08/10/2011 12:03 PM, Juan Sánchez wrote:
>
> GUI2Application.QueueAsyncCall(@Form2.CloseForm, 0);
>
> And Form2.CloseForm refers to:
> procedure TForm2.CloseForm(x: LongInt);
> begin
> Close();
> end;
Yep. This is how it should be done. (The procedure to be queued is
defined to have a parameter).
> But I can see that I cannot close main windows with close button. I
> think that "GUI2Application.Run" doesn't end.
I never tried QueueAsyncCall in Windows and I do know that it once was
buggy in Linux, so maybe it in fact does not work correctly.
-Michael
More information about the Lazarus
mailing list