[Lazarus] RE : Forms in DLL

Juan Sánchez aldeacity at gmail.com
Mon Aug 8 19:16:33 CEST 2011


  What I wrote in last message was about win32. In Mac main window remains
innactive when I click button and get modal window :-)

Juan.
El 08/08/2011 17:28, "Ludo Brands" <ludo.brands at free.fr> escribió:
>
>
> I know that some people asked about this before. But it isn't clear enough
> for me :-) So. Is it possible to include forms or other lcl graphic
> component in a DLL so, for example, a DLL function can create or modify a
> form?
> If it is not possible... There any initiative or way to try to participate
> and code it to get it?
>
>
> Generally speaking, no. The LCL in the dll comes with it's own messagepump
> and you can have only one per process. What works for me: a modal form
> created in a dll. Modal forms are kind of "exclusive" for the process and
> having 2 message pumps isn't a problem. There is an issue when the dll is
> called from MFC. Details and workaround here:
> http://bugs.freepascal.org/view.php?id=19327.
> OSX requires the patch attached to
> http://bugs.freepascal.org/view.php?id=19253.
>
> Ludo
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20110808/6cd03cb5/attachment-0003.html>


More information about the Lazarus mailing list