[Lazarus] RE : RE : Forms in DLL

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


Yes. It's a nice thing. I put an edit control and I can type on it. But only
in Windows. In Mac main window is blocked.
Juan.
El 08/08/2011 19:22, "Ludo Brands" <ludo.brands at free.fr> escribió:
>
>
>
> I have tried it. From main program, one button call a procedure in a DLL
> with a form. Inside this procedure I code this:
>
> Application.Initialize;
> Application.CreateForm(TForm2, Form2);
> Form2.ShowModal();
>
> Is this Ok?
>
>
> In my apps I used Form2:=TForm2.create(nil); instead of
> Application.CreateForm(TForm2,Form2); I don't think that makes a lot of
> difference for the main (from dll perspective), modal window.
>
>
> What I can see is that main window in programa never is blocked so I can
> access both modal and main window. If I click twice button to get two
modal
> windows from DLL, both are modal and now I can access last window created
> and main window.
>
>
>
> Are all controls working in both the main and the modal window? Clicking
on
> buttons, entering data, tabbing from one control to another, etc.
>
> Ludo
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20110808/e46995d5/attachment-0003.html>


More information about the Lazarus mailing list