<?xml version="1.0" encoding="utf-8" ?>
<?xml-stylesheet type="text/xsl" href="RSS_xslt_style.asp" version="1.0" ?>
<rss version="2.0" xmlns:WebWizForums="https://syndication.webwiz.net/rss_namespace/">
 <channel>
  <title>Codejock Developer Community : Only allow docking on one side</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Docking Pane : Only allow docking on one side]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Fri, 17 Apr 2026 15:14:21 +0000</pubDate>
  <lastBuildDate>Tue, 27 Aug 2013 21:27:29 +0000</lastBuildDate>
  <docs>http://blogs.law.harvard.edu/tech/rss</docs>
  <generator>Web Wiz Forums 12.04</generator>
  <ttl>360</ttl>
  <WebWizForums:feedURL>forum.codejock.com/RSS_post_feed.asp?TID=10797</WebWizForums:feedURL>
  <image>
   <title><![CDATA[Codejock Developer Community]]></title>
   <url>http://forum.codejock.com/forum_images/codejock-logo.gif</url>
   <link>http://forum.codejock.com/</link>
  </image>
  <item>
   <title><![CDATA[Only allow docking on one side :  A very late reply, but just...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=10797&amp;PID=71554&amp;title=only-allow-docking-on-one-side#71554</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=8201">chionatech</a><br /><strong>Subject:</strong> 10797<br /><strong>Posted:</strong> 27 August 2013 at 9:27pm<br /><br />A very late reply, but just had to do this myself.<div>&nbsp;</div><div>For a working example, get the Docking Pane sample MDIPanes, and edit the OnDockingPaneNotify to have the following code:</div><div>&nbsp;</div><font face="C&#111;nsolas" size="2"><font face="C&#111;nsolas" size="2"><font face="C&#111;nsolas" size="2"><font face="C&#111;nsolas" size="2"><table width="99%"><tr><td><pre class="BBcode"><div>LRESULT CChildFrame::OnDockingPaneNotify(WPARAM wParam, LPARAM lParam)<br>{<br>&nbsp;if (wParam == XTP_DPN_ACTION)<br>&nbsp;{<br>&nbsp;&nbsp;XTP_DOCKINGPANE_ACTION *pAction = (XTP_DOCKINGPANE_ACTION *)lParam;<br>&nbsp;&nbsp;if ( pAction-&gt;action == xtpPaneActionDocking )<br>&nbsp;&nbsp;{<br>&nbsp;&nbsp;&nbsp;// restrict to docking only left and right<br>&nbsp;&nbsp;&nbsp;XTPDockingPaneDirection eDir = pAction-&gt;dockDirection;<br>&nbsp;&nbsp;&nbsp;if ( eDir == xtpPaneDockTop || eDir == xtpPaneDockBottom )<br>&nbsp;&nbsp;&nbsp;&nbsp;pAction-&gt;bCancel = true;<br>&nbsp;&nbsp;}<br>&nbsp;}<br>&nbsp;return FALSE;<br>}<br></div></pre></td></tr></table><div></div></font><div>When you run the sample, you'll notice that you can no longer dock top or bottom and the docking highlights don't even show up.</div></font><div></div></font><div></div></font><div></div>]]>
   </description>
   <pubDate>Tue, 27 Aug 2013 21:27:29 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=10797&amp;PID=71554&amp;title=only-allow-docking-on-one-side#71554</guid>
  </item> 
  <item>
   <title><![CDATA[Only allow docking on one side : Hi,  Add this code  Private...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=10797&amp;PID=35881&amp;title=only-allow-docking-on-one-side#35881</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 10797<br /><strong>Posted:</strong> 27 May 2008 at 12:30pm<br /><br />Hi,<DIV>&nbsp;</DIV><DIV>Add this code</DIV><DIV>&nbsp;</DIV><DIV>Private Sub DockingPaneManager_Action(ByVal Action As XtremeDockingPane.DockingPaneAction, ByVal Pane As XtremeDockingPane.IPane, ByVal Container As XtremeDockingPane.IPaneActionContainer, Cancel As Boolean)<BR>On Error Resume Next<BR>&nbsp;&nbsp;&nbsp; If (Action = PaneActionDocking) Then<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; If (Container.Container.Type &lt;&gt; PaneTypeTabbedContainer) And _<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; (Container.Direction = DockTopOf Or Container.Direction = DockBottomOf Or Container.Direction = DockRightOf) Then<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Cancel = True<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; End If<BR>&nbsp;&nbsp;&nbsp; End If<BR>End Sub</DIV>]]>
   </description>
   <pubDate>Tue, 27 May 2008 12:30:23 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=10797&amp;PID=35881&amp;title=only-allow-docking-on-one-side#35881</guid>
  </item> 
  <item>
   <title><![CDATA[Only allow docking on one side : Is there a property to only allow...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=10797&amp;PID=35855&amp;title=only-allow-docking-on-one-side#35855</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2464">ziracote</a><br /><strong>Subject:</strong> 10797<br /><strong>Posted:</strong> 27 May 2008 at 8:57am<br /><br />Is there a property to only allow a window to dock on one side?]]>
   </description>
   <pubDate>Tue, 27 May 2008 08:57:20 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=10797&amp;PID=35855&amp;title=only-allow-docking-on-one-side#35855</guid>
  </item> 
 </channel>
</rss>