Dunno if much use but I have had a similar problem where assignments were
ambiguous. ie
with anobject do begin
font = ???
otherproperty = y
etc
end;
You think you are assigning anobject the font ??? but infact some other more
local object is getting it (and maybe the property is read only). Sorry
cannot be more specific - is a distant, sorry memory.
-----Original Message-----
From: Scott Cree [mailto:[EMAIL PROTECTED]]
Sent: 7 May 2001 16:32
To: Multiple recipients of list delphi
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"