We open ours modally but some principles shoudl be the same.
You need to make the DLL and the part of the calling Application. The code
below is an example of how we do it. The com stuff allows the dll to talk
back to the calling app.
procedure OpenWages(SenderApplication : TApplication; Sender : TForm);
begin
MyApplication := Application; file://Save pointer to my
application
Application := SenderApplication; file://Use the calling apps
application
ComConnection := CoDLLSupport.Create;
WagesForm := TWagesForm.Create(Sender);
WagesForm.ShowModal;
Application.ProcessMessages;
Application := MyApplication; file://Restore pointer
Application.ProcessMessages;
end;
Hope this is of some small assistance. :)
Rob
Software engineer
Wild Software Ltd
[EMAIL PROTECTED]
----- Original Message -----
From: <[EMAIL PROTECTED]>
To: "Multiple recipients of list delphi" <[EMAIL PROTECTED]>
Sent: Thursday, April 05, 2001 3:06 AM
Subject: [DUG]: MDI Form in a DLL
> Hi. I have asked this question before, BUT I cant find the code someone
sent me.
>
> I want to Open a form from a DLL as an MDI child in an MDI Parent.
>
> Can anyone help ?
>
> Cheers, Jeremy Coulter
>
>
>
> Jeremy Coulter (Manager)
> Visual Software Solutions
> Christchurch, New Zealand
> PH 03-3521595
> FAX 03-3521596
> MOBILE 021-2533214
> www.vss.co.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"
>
---------------------------------------------------------------------------
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"