<?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 : Preventing TearOff Popup from docking</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Command Bars : Preventing TearOff Popup from docking]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Wed, 10 Jun 2026 13:51:06 +0000</pubDate>
  <lastBuildDate>Wed, 07 Mar 2007 07:44:15 +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=6519</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[Preventing TearOff Popup from docking : Hi, Afriad only one idea - monitor...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=6519&amp;PID=20977&amp;title=preventing-tearoff-popup-from-docking#20977</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 6519<br /><strong>Posted:</strong> 07 March 2007 at 7:44am<br /><br /><P>Hi,</P><DIV>Afriad only one idea - monitor Count of CommandBars in Update event - if changed - check if it is tearoff bar (BuiltIn property have to be False for this bar) and change its docking. Quite weird but will work.</DIV>]]>
   </description>
   <pubDate>Wed, 07 Mar 2007 07:44:15 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=6519&amp;PID=20977&amp;title=preventing-tearoff-popup-from-docking#20977</guid>
  </item> 
  <item>
   <title><![CDATA[Preventing TearOff Popup from docking : Just tried this.  Unfortunately,...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=6519&amp;PID=20974&amp;title=preventing-tearoff-popup-from-docking#20974</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=237">markh</a><br /><strong>Subject:</strong> 6519<br /><strong>Posted:</strong> 07 March 2007 at 7:27am<br /><br />Just tried this.<DIV>&nbsp;</DIV><DIV>Unfortunately, the ToolBarVisibleChanged event does not seem to be called at all when the when I tearoff the popup. It only seems to be called when I subsequently close the floating tearoff bar&nbsp;using the X button.</DIV><DIV>&nbsp;</DIV><DIV>Also, the BuiltIn property is always false for the tearoff bar, although this doesn't make any difference since the event isn't called anyway.</DIV><DIV>&nbsp;</DIV><DIV>Any other ideas??</DIV>]]>
   </description>
   <pubDate>Wed, 07 Mar 2007 07:27:04 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=6519&amp;PID=20974&amp;title=preventing-tearoff-popup-from-docking#20974</guid>
  </item> 
  <item>
   <title><![CDATA[Preventing TearOff Popup from docking : Sorry, was answer for MFC users,...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=6519&amp;PID=20965&amp;title=preventing-tearoff-popup-from-docking#20965</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 6519<br /><strong>Posted:</strong> 07 March 2007 at 5:04am<br /><br />Sorry, was answer for MFC users, didn't check forum. <DIV></DIV><DIV></DIV>hmm in ActiveX version there is&nbsp;no event when new tearoff bar was created. <DIV>&nbsp;</DIV><DIV>try to catch ToolBarVisibleChanged event, check toolbar's BuiltIn property and set its <FONT face="Courier New">EnableDocking </FONT></DIV>]]>
   </description>
   <pubDate>Wed, 07 Mar 2007 05:04:25 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=6519&amp;PID=20965&amp;title=preventing-tearoff-popup-from-docking#20965</guid>
  </item> 
  <item>
   <title><![CDATA[Preventing TearOff Popup from docking : Any more info on this one??  I...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=6519&amp;PID=20955&amp;title=preventing-tearoff-popup-from-docking#20955</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=237">markh</a><br /><strong>Subject:</strong> 6519<br /><strong>Posted:</strong> 06 March 2007 at 6:04pm<br /><br />Any more info on this one??<DIV>&nbsp;</DIV><DIV>I still don't seem to be able to prevent a TearOff popup from docking.</DIV><DIV>&nbsp;</DIV><DIV>Thanks</DIV>]]>
   </description>
   <pubDate>Tue, 06 Mar 2007 18:04:24 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=6519&amp;PID=20955&amp;title=preventing-tearoff-popup-from-docking#20955</guid>
  </item> 
  <item>
   <title><![CDATA[Preventing TearOff Popup from docking :  Hello Oleg  What is the CustomThemes...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=6519&amp;PID=20787&amp;title=preventing-tearoff-popup-from-docking#20787</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=237">markh</a><br /><strong>Subject:</strong> 6519<br /><strong>Posted:</strong> 27 February 2007 at 10:39am<br /><br /><DIV>&nbsp;</DIV><DIV>Hello Oleg</DIV><DIV>&nbsp;</DIV><DIV>What is the CustomThemes sample? I don't see one.</DIV><DIV>&nbsp;</DIV><DIV>In fact the only sample that seems to have a call to SetTearOffPopup is the Office 2003 sample. This however, does allow the torn off popup to dock to any position.</DIV><DIV>&nbsp;</DIV><DIV>If I add the line:</DIV><DIV>&nbsp;</DIV><DIV><FONT face="Courier New, Courier, mono">ControlColorPopup.CommandBar.EnableDocking xtpFlagFloating</FONT></DIV><DIV>&nbsp;</DIV><DIV>after </DIV><DIV>&nbsp;</DIV><DIV><FONT face="Courier New, Courier, mono">ControlColorPopup.CommandBar.SetTearOffPopup "Colors", IDR_COLORSBAR, 150</FONT></DIV><DIV>&nbsp;</DIV><DIV>it still allows me to dock the TearOff to any location.</DIV>]]>
   </description>
   <pubDate>Tue, 27 Feb 2007 10:39:18 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=6519&amp;PID=20787&amp;title=preventing-tearoff-popup-from-docking#20787</guid>
  </item> 
  <item>
   <title><![CDATA[Preventing TearOff Popup from docking : Hi,  check CustomThemes sample......]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=6519&amp;PID=20783&amp;title=preventing-tearoff-popup-from-docking#20783</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 6519<br /><strong>Posted:</strong> 27 February 2007 at 9:50am<br /><br />Hi,<DIV>&nbsp;</DIV><DIV>check CustomThemes sample...</DIV>]]>
   </description>
   <pubDate>Tue, 27 Feb 2007 09:50:04 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=6519&amp;PID=20783&amp;title=preventing-tearoff-popup-from-docking#20783</guid>
  </item> 
  <item>
   <title><![CDATA[Preventing TearOff Popup from docking : Hello  Just wondered if there...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=6519&amp;PID=20781&amp;title=preventing-tearoff-popup-from-docking#20781</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=237">markh</a><br /><strong>Subject:</strong> 6519<br /><strong>Posted:</strong> 27 February 2007 at 9:16am<br /><br />Hello<DIV>&nbsp;</DIV><DIV>Just wondered if there was a way of preventing a TearOff popup from docking once it has been torn off? I have tried calling:</DIV><DIV><FONT face="Courier New, Courier, mono"></FONT>&nbsp;</DIV><DIV><FONT face="Courier New, Courier, mono">EnableDocking(XtremeCommandBars::xtpFlagFloating); </FONT></DIV><DIV><FONT face="Courier New"></FONT>&nbsp;</DIV><DIV>for the CommandBar of the popup on creation. However, this doesn't seem to work. It does seem to work if the toolbars are saved and reloaded next time the app starts but only if the TearOff was visible when the toolbars were saved.</DIV><DIV>&nbsp;</DIV><DIV>There is also another interesting issue. When the TearOff is originally torn off, the floating window has the graduated fill of the specified VS 2005 theme. However, when it is reloaded it has a plain fill. This only occurs if the above EnableDocking is called after loading. See images:</DIV><DIV>&nbsp;</DIV><DIV><img src="http://forum.codejock.com/uploads/20070227_091309_TearOff_straigh.PNG" border="0"></DIV><DIV><FONT size=1>After initial tearing off</FONT></DIV><DIV>&nbsp;</DIV><DIV><img src="http://forum.codejock.com/uploads/20070227_091342_TearOff_after_s.PNG" border="0"></DIV><DIV><FONT size=1>After Save and Reload</FONT></DIV><DIV><FONT size=1></FONT>&nbsp;</DIV><DIV><FONT size=2>Any help appreciated.</FONT></DIV><DIV><FONT size=2></FONT>&nbsp;</DIV><DIV><FONT size=2>Mark</FONT></DIV><DIV><FONT size=2></FONT>&nbsp;</DIV>]]>
   </description>
   <pubDate>Tue, 27 Feb 2007 09:16:02 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=6519&amp;PID=20781&amp;title=preventing-tearoff-popup-from-docking#20781</guid>
  </item> 
 </channel>
</rss>