<?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 : tear-off custom control</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Command Bars : tear-off custom control]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Wed, 10 Jun 2026 17:38:37 +0000</pubDate>
  <lastBuildDate>Mon, 03 Sep 2007 17:09:28 +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=7917</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[tear-off custom control : Oleg, it doesn&amp;#039;t NEED to...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=7917&amp;PID=25518&amp;title=tearoff-custom-control#25518</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3265">nostromo</a><br /><strong>Subject:</strong> 7917<br /><strong>Posted:</strong> 03 September 2007 at 5:09pm<br /><br />Oleg, it doesn't NEED to be shown in 2 windows at the same time, that's not what I'm asking.&nbsp;  You can't click in 2 windows at the same time. The problem is that it isn't shown in ANY window, after closing the teared-off one.<br><br><br>]]>
   </description>
   <pubDate>Mon, 03 Sep 2007 17:09:28 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=7917&amp;PID=25518&amp;title=tearoff-custom-control#25518</guid>
  </item> 
  <item>
   <title><![CDATA[tear-off custom control : Hi,  Yes, Custom controls can&amp;#039;t...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=7917&amp;PID=25485&amp;title=tearoff-custom-control#25485</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 7917<br /><strong>Posted:</strong> 03 September 2007 at 5:44am<br /><br /><DIV>Hi,</DIV><DIV>&nbsp;</DIV><DIV>Yes, Custom controls can't be added to tearoff bars.&nbsp; </DIV><DIV>I think you understand that its not possible to show _same dialog_&nbsp;(m_dlgTest&nbsp;) &nbsp;in 2 windows in same time.</DIV>]]>
   </description>
   <pubDate>Mon, 03 Sep 2007 05:44:31 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=7917&amp;PID=25485&amp;title=tearoff-custom-control#25485</guid>
  </item> 
  <item>
   <title><![CDATA[tear-off custom control : Hi all,I&amp;#039;m trying to add...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=7917&amp;PID=25462&amp;title=tearoff-custom-control#25462</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3265">nostromo</a><br /><strong>Subject:</strong> 7917<br /><strong>Posted:</strong> 01 September 2007 at 3:07pm<br /><br />Hi all,<br><br>I'm trying to add a custom control to a popup button, that can be ripped off, like the font color control in the CodeJock example "TearOffPopups ".<br><br>However, it doesn't work correctly. <br>behavior: click on button, see the custom control (a dialog), tear off the bar. Everything is still okay.<br>Now close the bar, and click the button again.: the button is empty! where did the contents of the custom control go?<br><br>Or, tear off the bar, click the button again, now the control shows in the popup (which is ok),&nbsp; the teared off bar shows a blank space.&nbsp; The teared off bar stays blank when the popup is closed.<br><br>Any ideas how to get this working?<br>Thanks!<br><br><br>code:<br>To test, I added a simple dialog to the TearOffPopus project, with style set to "Child","control=true", "no border", added a member to the mainframe, and did the following in OnCreateControl: (replaced the colorpopup with this) <br><br>int CMainFrame::OnCreateControl(LPCREATECONTROLSTRUCT lpCreateControl)<br>{<br>&nbsp;&nbsp;&nbsp; if (lpCreateControl-&gt;bToolBar)<br>&nbsp;&nbsp;&nbsp; {<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; if (lpCreateControl-&gt;nID == ID_BUTTON_TEXT &amp;&amp; pToolBar-&gt;GetBarID() == IDR_MAINFRAME)<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; {<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; CXTPControlPopup* pPopup = new CXTPControlPopup();<br><br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; CXTPPopupBar* pBar = CXTPPopupToolBar::CreatePopupToolBar(GetCommandBars());<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; pPopup-&gt;SetCommandBar(pBar);<br><br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; m_dlgTest.Create(CDlgTest::IDD, this);<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; CXTPControlCustom* pControlCustom = CXTPControlCustom::CreateControlCustom( &amp;m_dlgTest );<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; pControlCustom-&gt;SetFlags(xtpFlagManualUpdate);<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; pControlCustom-&gt;SetVerticalPositionOption(xtpVerticalShow);<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; pBar-&gt;GetControls()-&gt;Add(pControlCustom);<br>&nbsp;&nbsp;&nbsp; //&nbsp;&nbsp;&nbsp; pBar-&gt;GetControls()-&gt;Add(new CXTPControlColorSelector(), ID_CMD_COLORSET);<br><br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; pBar-&gt;SetTearOffPopup(_T("Measure Settings"), 1005, 0);<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; pBar-&gt;EnableCustomization(FALSE);<br><br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; pBar-&gt;InternalRelease();<br><br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; lpCreateControl-&gt;pControl = pPopup;<br><br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; return TRUE;<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; }<br>&nbsp;&nbsp;&nbsp; }<br>&nbsp;&nbsp;&nbsp; return FALSE;<br>}<br><br><br>]]>
   </description>
   <pubDate>Sat, 01 Sep 2007 15:07:46 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=7917&amp;PID=25462&amp;title=tearoff-custom-control#25462</guid>
  </item> 
 </channel>
</rss>