Just set the forms parent to be the panel.

-----Original Message-----
From: James Low [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, 26 November 2002 9:35 a.m.
To: Multiple recipients of list delphi
Subject: [DUG]: Docking forms to Panels in Code



I have a form that I want to create docked inside a panel. I can create it,
drag it and have it dock, but am struggling somewhat to get it created and
docked automatically (ie all in code, no dragging by hand). 

I guess this is pretty simple stuff as the manual dragging stuff is
virtually code free ... but I cannot find an example and various attempts at
creating TDragDrop objects etc have failed. Can some help with a snippet of
code, or couple of quick pointers to get me headed in the right direction.

Thanks a lot


James

Notice of Legal Status and Confidential Information: This electronic mail
message and any accompanying attachments may contain information that is
privileged and CONFIDENTIAL.  If you are not the intended recipient you are
advised that any use, review, dissemination, distribution or reproduction of
the information is strictly prohibited and may be unlawful.  If you have
received this document in error, please notify the sender immediately and
destroy the message.
---------------------------------------------------------------------------
    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"
Web Archive at: http://www.mail-archive.com/delphi%40delphi.org.nz/
---------------------------------------------------------------------------
    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"
Web Archive at: http://www.mail-archive.com/delphi%40delphi.org.nz/

Reply via email to