[Lazarus] Form in DLL

Mark Morgan Lloyd markMLl.lazarus at telemetry.co.uk
Thu May 3 13:40:20 CEST 2012


Michael Schnell wrote:
> On 05/03/2012 11:11 AM, Mark Morgan Lloyd wrote:
>> specifically did not encapsulate an explicit thread,
> Without a dedicated thread the GUI events are not handled and thus you 
> can't have a dedicated Form at all.

Yes, but what if the form was actually declared in the main program? 
Could code resident in a DLL (and called from the main thread) interact 
with the form to e.g. set up main- or context-menu entries, or at least 
work around the memory manager issues sufficiently to be able to return 
strings representing menuitem captions and entry points representing 
click handlers? And could the handlers then interact with the 
main-program form(s)?

-- 
Mark Morgan Lloyd
markMLl .AT. telemetry.co .DOT. uk

[Opinions above are the author's, not those of his employers or colleagues]




More information about the Lazarus mailing list