> >>> Using [ form2.parent:=form1; ] attaches form2 to form1 in-process.
> >>>
> >>> What is needed to attach TControl.Parent to an out of
> process window?
> >> What do you want to do ?
> >
> > Integrate two separate apps into one window.
>
> Personally I wouldn't try this.
>
> I cannot give a platform independent way, but with win32 api,
> you can try SetParent. I Doubt if you can reparent windows
> not owned by you.

Use a "proxy" window either in the current or the other process (whatever
suits your particular case) that will be the real parent and have logic
(monitor the other parent) to respond to minimize/close etc. and act upon
your child too either posting messages to it, or calling OS API on it or
talk via RPC to a window controller class at the other proc that
minimizes/closes/etc. a given window of that proc in a Laz RTL way

----------------
George Birbilis ([EMAIL PROTECTED])
Computer & Informatics Engineer
Microsoft MVP J# for 2004-2006
Borland "Spirit of Delphi"
++ QuickTime, Delphi, ActiveX, .NET components ++
http://www.kagi.com/birbilis
++ Robotics ++
http://www.mech.upatras.gr/~Robotics
http://www.mech.upatras.gr/~robgroup




  _____  

avast! Antivirus <http://www.avast.com> : Outbound message clean. 


Virus Database (VPS): 0651-0, 27/11/2006
Tested on: 30/11/2006 9:00:39 p?
avast! - copyright (c) 1988-2006 ALWIL Software.



_________________________________________________________________
     To unsubscribe: mail [EMAIL PROTECTED] with
                "unsubscribe" as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives

Reply via email to