Pass the calling application TApplication in to the DLL. In the DLL store
its TApplication and then point applicaton to the TApplicatoin passed from
the main program.
When your function is complete re assign the DLLs applicatoin back to the
one stored.
This will make your DLL and main app stick together properly. I can post
some code if you want.
Robert Martin
Software Engineer
Wild Software Ltd
----- Original Message -----
From: "Alex Kouznetsov" <[EMAIL PROTECTED]>
To: "Multiple recipients of list delphi" <[EMAIL PROTECTED]>
Sent: Monday, August 06, 2001 4:01 PM
Subject: [DUG]: Forms in DLL (again?)
> I have a DLL with the dialog box in it.
> I am creating that box as TForm1.Create (Application) and then do
ShowModal.
> Application object inside DLL seems to be pointing to the calling
> application. It holds the title and the path of calling exe.
>
> If I have that DLL box on top of my application, and then activate my
> application by clicking its button on W2K task bar, DLL box goes behind
the
> application window, which in turn becomes unusable as focus at that stage
is
> still kind of on the vanished DLL box.
>
> Any ways around it ?
>
> Regards
> Alex
>
> --------------------------------------------------------------------------
-
> New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
> Website: http://www.delphi.org.nz
> To UnSub, send email to: [EMAIL PROTECTED]
> with body of "unsubscribe delphi"
> Web Archive at: http://www.mail-archive.com/delphi%40delphi.org.nz/
>
---------------------------------------------------------------------------
New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
Website: http://www.delphi.org.nz
To UnSub, send email to: [EMAIL PROTECTED]
with body of "unsubscribe delphi"
Web Archive at: http://www.mail-archive.com/delphi%40delphi.org.nz/