It should be possible, we have done it with forms. I think we had to much
around a bit to get it working. I take it you are setting owner and parent
correctly, make sure the frame is part of the calling application i.e pass
the Application handle to the DLL and create the frame as part of the
calling App. Hope this makes sence / helps in some way.
Rob
Software engineer
Wild Software Ltd
[EMAIL PROTECTED]
----- Original Message -----
From: "Scott Cree" <[EMAIL PROTECTED]>
To: "Multiple recipients of list delphi" <[EMAIL PROTECTED]>
Sent: Monday, May 07, 2001 4:32 PM
Subject: [DUG]: Frames in DLLs
> I'm trying to create an application that loads a frame from a DLL and
embeds
> the frame in a panel in the main application.
>
> I can create the frame and return it to the calling app, but when I try
and
> set the parent property to be the panel, it's giving me an error message
> 'Cannot assign a TFont to a TFont'.
>
> Why is this happening? Is it possible to do what I am attempting or not?
> If not, is there another way to achieve the required result?
>
> Basically we have a main program that has a treeview for a menu. When an
> item is selected on the tree, I want to load the frame into a panel on the
> main form. This is so that we can add or change frames without having to
> recompile the main program.
>
> Cheers,
> Scott.
>
> Scott Cree
> Knowlysis Limited
> Ph: 358-0017
> Fax: 358-3534
> Email: [EMAIL PROTECTED]
> --------------------------------------------------------------------------
-
> 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"