[Lazarus] RE : Forms in DLL

Juan Sánchez aldeacity at gmail.com
Tue Aug 9 14:19:13 CEST 2011


2011/8/9 Michael Schnell <mschnell at lumino.de>

> Sorry for typing too fast (again :( ).
>
>
No, It's good. Thanks.


> in fact I would try something like this:
>
>
> var
>  GUI2Thread: TGUI2Thread;
> GUI2Application: TApplication
>
>  procedure TGUI2Thread.Execute;
>  begin
> GUI2Application:= TApplication.create;
>  GUI2Application.Title:='**GUI2Test';
>  GUI2Application.Initialize;
>  GUI2Application.CreateForm(**TForm2, Form2);
>  GUI2Application.Run;
> end;
>
>
I'll try it so.


>
> On 08/09/2011 01:14 PM, Juan Sánchez wrote:
>
>> The window is created from the main application, but you can not close it.
>>
>>
> How are you trying to close it ?
>
> If you close the Form Run should exit, but of course, before this the Form
> should be discarded from the screen and the memory.
>
>
When I call DLL funtion (DllMessage) from main program, new Window shows but
it's imposible to close it with close button in title bar. It only closes
where I close main window.

Regards,
Juan.


> Have fun,
>
> -Michael
>
> --
> ______________________________**_________________
> Lazarus mailing list
> Lazarus at lists.lazarus.**freepascal.org<Lazarus at lists.lazarus.freepascal.org>
> http://lists.lazarus.**freepascal.org/mailman/**listinfo/lazarus<http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20110809/e802499b/attachment-0003.html>


More information about the Lazarus mailing list