[DUG] Assigning a forms parent
Jeremy Coulter
vss at vss.co.nz
Wed Apr 5 17:08:23 NZST 2006
I dont have access the source of the other app to use COM, hence why I didnt
do it.
Its anotehr 3rd part app.
Yeah its crazy, but was just playing :-)
Jeremy
-----Original Message-----
From: "Kyley Harris" <kyley at harrissoftware.com>
To: "NZ Borland Developers Group - Delphi List" <delphi at ns3.123.co.nz>
Date: Wed, 5 Apr 2006 16:29:31 +1200
Subject: RE: [DUG] Assigning a forms parent
Thats what com was invented for. Use the Delphi wizard to make a com
wrapper of the form.
Then Expose the com object in said application.
In the parent app create the TOleControl wrapper. Set Border Style to none
and parent it to an MDI Child form in the
App.
There is no other way. Its called memory pollution if you let it happen.
By the way
I Hate COM and I think what you are trying to do sounds crazy.
If you need info in another app you should convert it into a dataproviding
app, and pass data over tcp to be displayed in the gui of your choice.
If you dont have the source for both apps then give up and ring the
software vendor.. J
From: delphi-bounces at ns3.123.co.nz [mailto:delphi-bounces at ns3.123.co.nz] On
Behalf Of Jeremy Coulter
Sent: Wednesday, 5 April 2006 3:58 p.m.
To: delphi at delphi.org.nz
Subject: [DUG] Assigning a forms parent
Hi All.
I have an app. that I would like to "Try" and assign the form to another
running app.
The other app. is an MDIparent, and I want to make it "appear" as if the
other apps form is just another form in the other application.
I tried setting the forms parenthandle to the handle of the other app, but
it didnt really work.
Anyone got any ideas?
Jeremy
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://ns3.123.co.nz/pipermail/delphi/attachments/20060405/f63ba042/attachment-0001.html
More information about the Delphi
mailing list