<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2900.2604" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>I'm using D5.1.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>I've managed to dock controls inside a form, but
that is not what I need.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>I set the mainform as a DockSite and a
child form with dmAutomatic dkDocking. When I drag the child
form over the mainform, the whole child form jumps into the middle of the
mainform. This is not what I'm after. I only want to edges of the
windows to be docked so it looks like this:</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2><A
href="http://www.undu.com/Articles/990413b.html">http://www.undu.com/Articles/990413b.html</A></FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>I don't think the docking system in D5 is
designed for this.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>I was excited for a short time when I found this
site, but it doesn't deal with the docking and undocking funtionality. The
code quoted on this page is only useful when the forms are already docked.
Perhaps I will need to write my own routines to check the positioning of the
windows It may not be too difficult.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2><FONT face=Arial size=2><FONT
color=#000000>Cheers,<BR><BR>Ross.</FONT></FONT></FONT></DIV>
<BLOCKQUOTE
style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
<DIV style="FONT: 10pt arial">----- Original Message ----- </DIV>
<DIV
style="BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: black"><B>From:</B>
<A title=JeremyN@frontiersoftware.com.au
href="mailto:JeremyN@frontiersoftware.com.au">JeremyN@frontiersoftware.com.au</A>
</DIV>
<DIV style="FONT: 10pt arial"><B>To:</B> <A title=delphi@ns3.123.co.nz
href="mailto:delphi@ns3.123.co.nz">delphi@ns3.123.co.nz</A> </DIV>
<DIV style="FONT: 10pt arial"><B>Sent:</B> Friday, February 18, 2005 1:24
PM</DIV>
<DIV style="FONT: 10pt arial"><B>Subject:</B> RE: [DUG] Docking forms
together</DIV>
<DIV><BR></DIV>
<DIV><SPAN class=264192600-18022005><FONT face=Arial color=#0000ff
size=2>Check out the docking demo application. It's pretty
good.</FONT></SPAN></DIV>
<DIV><SPAN class=264192600-18022005><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=264192600-18022005><FONT face=Arial color=#0000ff size=2>What
version are you using? </FONT></SPAN></DIV>
<DIV><SPAN class=264192600-18022005><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=264192600-18022005><FONT face=Arial color=#0000ff size=2>You
can setup docksites anywhere on a form.</FONT></SPAN></DIV>
<DIV><SPAN class=264192600-18022005><FONT face=Arial color=#0000ff size=2>I
suggest studying the demo.</FONT> </SPAN></DIV>
<BLOCKQUOTE dir=ltr style="MARGIN-RIGHT: 0px">
<DIV class=OutlookMessageHeader dir=ltr align=left><FONT face=Tahoma
size=2>-----Original Message-----<BR><B>From:</B> Ross Levis
[mailto:ross@stationplaylist.com]<BR><B>Sent:</B> 18 February 2005 11:02
AM<BR><B>To:</B> NZ Borland Developers Group - Delphi
List<BR><B>Subject:</B> [DUG] Docking forms together<BR><BR></FONT></DIV>
<DIV><FONT face=Arial size=2>I've never used docking and the
documentation doesn't seem to handle this situation.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>I have one or more non-modal forms that
can be opened from the mainform and can stay open. I
want to be able to dock the forms to the mainform, so if the mainform is
moved, the subforms move as well. The docking facilities in
Delphi appear to only handle internal docking within a form, and not on
outside edges of form windows.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>How is this done?</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2><FONT
color=#000000>Cheers,<BR>Ross.</FONT></FONT></DIV></BLOCKQUOTE>
<P>
<HR>
<P></P>_______________________________________________<BR>Delphi mailing
list<BR>Delphi@ns3.123.co.nz<BR>http://ns3.123.co.nz/mailman/listinfo/delphi<BR></BLOCKQUOTE></BODY></HTML>