<?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 : [SOLVED](ribbonbar) pointers no more persistent!!</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Command Bars : [SOLVED](ribbonbar) pointers no more persistent!!]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Wed, 13 May 2026 15:46:00 +0000</pubDate>
  <lastBuildDate>Fri, 27 Jun 2014 02:58: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=22319</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[[SOLVED](ribbonbar) pointers no more persistent!! : This article is solved. I already...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=22319&amp;PID=72587&amp;title=solvedribbonbar-pointers-no-more-persistent#72587</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3301">Michl</a><br /><strong>Subject:</strong> 22319<br /><strong>Posted:</strong> 27 June 2014 at 2:58am<br /><br />This article is solved. I already get a response from codejock guys.<br>I had got it wrong.<br><br><table width="99%"><tr><td class="BBquote"><img src="forum_images/quote_box.png" title="Quote" alt="Quote" style="vertical-align: text-bottom;" /> <br>You should rely on correct pointer values returned from Add only immediately after a call to Add in order to change control's properties, in all other cases you can always find a conrol's pointer by control's ID. As for the custom controls, they have to be built taking into account this behavior.<br></td></tr></table><br><br>Although I am not happy about this <img src="http://forum.codejock.com/smileys/smiley2.gif" border="0" alt="Wink" title="Wink" /><br>In my opinion, it should be irrelevant for programmer where codejock displays the control (directly in ribbon bar or in a popup for any reason)<br><br>Thanks for response<br>]]>
   </description>
   <pubDate>Fri, 27 Jun 2014 02:58:49 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=22319&amp;PID=72587&amp;title=solvedribbonbar-pointers-no-more-persistent#72587</guid>
  </item> 
  <item>
   <title><![CDATA[[SOLVED](ribbonbar) pointers no more persistent!! : How did you thought to works??Try...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=22319&amp;PID=72527&amp;title=solvedribbonbar-pointers-no-more-persistent#72527</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3301">Michl</a><br /><strong>Subject:</strong> 22319<br /><strong>Posted:</strong> 05 June 2014 at 11:37am<br /><br /><b>How did you thought to works??</b><br><br>Try this!<br><ul><li>Add controls to ribbon bar and save this pointer (result of Add)<br></li><li>Run app and resize application frame to minimum width</li><li>Now, the single controls should be groupped by parent button</li><li>click this button to popup/see your controls</li><li>Click on some button</li></ul><p>If you now using your saved pointer, you see that this points to a freed memory block.</p><p>The reason is, that you frees the original controls!</p><p><table width="99%"><tr><td><pre class="BBcode"></p><p>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;<font color="#006633"> // we need to copy the popped ribbon group to the existing (in order not to lose user's changes)</font><br><br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; CXTPRibbonGroupPopupToolBar *pPopupToolbar = DYNAMIC_DOWNCAST(CXTPRibbonGroupPopupToolBar, m_pCommandBar);<br><br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; if (pPopupToolbar &amp;&amp; pPopupToolbar-&gt;m_pRibbonGroup)<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; {<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; <font color="#FF0000">m_pPopupGroup-&gt;RemoveAll();</font><br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; m_pPopupGroup-&gt;Copy(pPopupToolbar-&gt;m_pRibbonGroup);<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; }<br></pre></td></tr></table></p><p><br></p><p>I think, this problem is not implement correctly. Controls should force to move, not copy/duplicate, in other popups. It should be transparent where they should be displayed. It's the same control (e.g. button)!<br></p>]]>
   </description>
   <pubDate>Thu, 05 Jun 2014 11:37:54 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=22319&amp;PID=72527&amp;title=solvedribbonbar-pointers-no-more-persistent#72527</guid>
  </item> 
 </channel>
</rss>