<?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 : Docking Pane Caption with [X] button</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Docking Pane : Docking Pane Caption with [X] button]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Mon, 20 Apr 2026 11:22:51 +0000</pubDate>
  <lastBuildDate>Mon, 25 Nov 2019 06:20:49 +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=18794</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[Docking Pane Caption with [X] button : Ok I have found a solution which...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=18794&amp;PID=77541&amp;title=docking-pane-caption-with-x-button#77541</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=8817">cluster</a><br /><strong>Subject:</strong> 18794<br /><strong>Posted:</strong> 25 November 2019 at 6:20am<br /><br /><div>Ok I have found a solution which give me the Visual Studio 2013 behavior.</div><div><br></div><div>First step is, to disable the hover functionality with<br></div><div>SetDefaultPaneOptions( xtpPaneNoHoverShow );<br></div><div><br></div><div>Next step is to use a class derivation of CXTPDockingPaneAutoHidePanel and handle the OnLButtonDown function like:</div><div><br></div><div>void CDockingPaneAutoHidePanel::OnLButtonDown(UINT /*nFlags*/, CPoint point)<br>{<br>&nbsp;&nbsp;&nbsp; if (m_pHighlightedNavigateButton)<br>&nbsp;&nbsp;&nbsp; {<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; m_pHighlightedNavigateButton-&gt;PerformClick(m_hWnd, point);<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; return;<br>&nbsp;&nbsp;&nbsp; }<br><br>&nbsp;&nbsp;&nbsp; CXTPDockingPane* pPane = HitTest(point);<br>&nbsp;&nbsp;&nbsp; if (pPane)<br>&nbsp;&nbsp;&nbsp; {<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; if (pPane-&gt;IsFocus())<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; {<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; pPane-&gt;Hide();<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; SetFocus();<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; }<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; else<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; {<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; ShowPane(pPane, TRUE);<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; }<br>&nbsp;&nbsp;&nbsp; }<br>}<br></div><div><br></div><div><br></div>]]>
   </description>
   <pubDate>Mon, 25 Nov 2019 06:20:49 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=18794&amp;PID=77541&amp;title=docking-pane-caption-with-x-button#77541</guid>
  </item> 
  <item>
   <title><![CDATA[Docking Pane Caption with [X] button : Hi,I need this functionality also,...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=18794&amp;PID=77539&amp;title=docking-pane-caption-with-x-button#77539</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=8817">cluster</a><br /><strong>Subject:</strong> 18794<br /><strong>Posted:</strong> 21 November 2019 at 6:45pm<br /><br /><div>Hi,</div><div><br></div><div>I need this functionality also, do you already found a solution in the meantime?</div><div><br></div><div>THX</div><div><br></div><div>EDIT: Btw. Visual Studio 2013 has this feature as well<br></div>]]>
   </description>
   <pubDate>Thu, 21 Nov 2019 18:45:29 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=18794&amp;PID=77539&amp;title=docking-pane-caption-with-x-button#77539</guid>
  </item> 
  <item>
   <title><![CDATA[Docking Pane Caption with [X] button :  Thanks, Carlosbut this will...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=18794&amp;PID=65824&amp;title=docking-pane-caption-with-x-button#65824</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3104">MacW</a><br /><strong>Subject:</strong> 18794<br /><strong>Posted:</strong> 09 August 2011 at 1:52am<br /><br />Thanks, Carlos<br><br>but this will not work in my case. When the user expands an auto-hide pane, my app gets the standard actions (expanding, expanded, activated...) Good.<br><br>But clicking on the tab (not the caption/title bar!) does not cause any event or action. My users want to be able to hide the pane by clicking on the tab.<br><br>When an auto-hide pane does not get the focus when the user opens it, it will automatically hide when the user moves the mouse out of the pane. <br><br>If the pane grabs the focus or the user sets the focus to the pane by clicking the pane itself or the child window, the pane will no longer auto-close when the mouse leaves the pane. The user has to explicitly set the focus to another window to make the pane close.<br><br>The mouse click is handled in<br><br>CXTPDockingPaneAutoHidePanel::OnLButtonDown<br><br>but there are no virtual functions or notifications to intercept or use. Adding the ability to hide the pane by clicking the tab would require source code changes in XTP.<br><br>]]>
   </description>
   <pubDate>Tue, 09 Aug 2011 01:52:43 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=18794&amp;PID=65824&amp;title=docking-pane-caption-with-x-button#65824</guid>
  </item> 
  <item>
   <title><![CDATA[Docking Pane Caption with [X] button : I get PaneActionFloating when...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=18794&amp;PID=65818&amp;title=docking-pane-caption-with-x-button#65818</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3743">Carlos Rocha</a><br /><strong>Subject:</strong> 18794<br /><strong>Posted:</strong> 08 August 2011 at 2:58pm<br /><br />I get PaneActionFloating when clicking in a pane title bar (ActiveX version). I use it to maximize the pane, but maybe it works for what you want.]]>
   </description>
   <pubDate>Mon, 08 Aug 2011 14:58:32 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=18794&amp;PID=65818&amp;title=docking-pane-caption-with-x-button#65818</guid>
  </item> 
  <item>
   <title><![CDATA[Docking Pane Caption with [X] button : Or add some code to close them...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=18794&amp;PID=65816&amp;title=docking-pane-caption-with-x-button#65816</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3104">MacW</a><br /><strong>Subject:</strong> 18794<br /><strong>Posted:</strong> 08 August 2011 at 12:38pm<br /><br />Or add some code to close them when I click on the tab?]]>
   </description>
   <pubDate>Mon, 08 Aug 2011 12:38:52 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=18794&amp;PID=65816&amp;title=docking-pane-caption-with-x-button#65816</guid>
  </item> 
  <item>
   <title><![CDATA[Docking Pane Caption with [X] button : Hi,is it possible to have a close...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=18794&amp;PID=65763&amp;title=docking-pane-caption-with-x-button#65763</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3104">MacW</a><br /><strong>Subject:</strong> 18794<br /><strong>Posted:</strong> 06 August 2011 at 9:44am<br /><br />Hi,<br><br>is it possible to have a close button &#091;x&#093; on the caption of auto-hide panes?<br><br>Similar to CXTPTabCtrl's<br><br>ShowCloseItemButton(xtpTabNavigateButtonAutomatic);<br>]]>
   </description>
   <pubDate>Sat, 06 Aug 2011 09:44:35 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=18794&amp;PID=65763&amp;title=docking-pane-caption-with-x-button#65763</guid>
  </item> 
 </channel>
</rss>