[Lazarus] RE : Forms in DLL

Ludo Brands ludo.brands at free.fr
Mon Aug 8 17:28:07 CEST 2011


 

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/d0cbba3b/attachment-0003.html>


More information about the Lazarus mailing list