[DUG] Assigning a forms parent

Kyley Harris kyley at harrissoftware.com
Wed Apr 5 16:29:31 NZST 2006


That's 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 don't have the source for both apps then give up and ring the
software vendor.. :-)

 

________________________________

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/5e6c71ef/attachment.html


More information about the Delphi mailing list