<?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 : How to use CXTPRibbonGroup::SetIconId()?</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Command Bars : How to use CXTPRibbonGroup::SetIconId()?]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Sat, 16 May 2026 02:54:11 +0000</pubDate>
  <lastBuildDate>Thu, 25 Mar 2010 10:36:47 +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=16509</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[How to use CXTPRibbonGroup::SetIconId()? : I found a way around the bug....]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=16509&amp;PID=57791&amp;title=how-to-use-cxtpribbongroupseticonid#57791</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3213">rdhd</a><br /><strong>Subject:</strong> 16509<br /><strong>Posted:</strong> 25 March 2010 at 10:36am<br /><br />I found a way around the bug. <DIV>&nbsp;</DIV><DIV>pGroup-&gt;SetIconId // does nothing discernable</DIV><DIV>pPopup = pGroup-&gt;GetControlGroupPopup</DIV><DIV>pPopup-&gt;SetIconId // icon will be used when group is added to QAT or group is displayed as a "button".</DIV>]]>
   </description>
   <pubDate>Thu, 25 Mar 2010 10:36:47 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=16509&amp;PID=57791&amp;title=how-to-use-cxtpribbongroupseticonid#57791</guid>
  </item> 
  <item>
   <title><![CDATA[How to use CXTPRibbonGroup::SetIconId()? : I am trying to use the SetIconId...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=16509&amp;PID=57777&amp;title=how-to-use-cxtpribbongroupseticonid#57777</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3213">rdhd</a><br /><strong>Subject:</strong> 16509<br /><strong>Posted:</strong> 24 March 2010 at 6:53pm<br /><br />I am trying to use the SetIconId method on a CXTPRibbonGroup. I can set the icon id with no problem. But when I squeeze the app frame so the groups collapse and the group is drawn, the display code is not using the image I set. Instead another icon is drawn that is obtained by using the CXTPControl::GetIconId method. When squeezed down I can step through drawing code and the CXTPRibbonPaintManager::DrawControlGroupPopup CJ is called from CXTPRibbonGroup::Draw (when "m_pControlGroupPopup-&gt;IsVisible" returns true).<DIV></DIV><DIV>&nbsp;</DIV><DIV>I can see the CXTPRibbonGroupControlPopup has the pointer to the actual group that has the m_nIconId set to my image id. But it is not being used. It looks like the code that creates the group control popup should be copying the group's icon id as well as the data it is copying. Since I don't create these group popups directly, I can not figure out how to get CJ to draw with the icon using the Id I set using CXTPRibbonGroup::SetIconId().</DIV><DIV>&nbsp;</DIV><DIV>This also happens when I right-click and add the group to the QAT.</DIV><DIV>&nbsp;</DIV><DIV>The xtpribbongroup.h file has comments that indicate m_nIconId specifies the icon to draw when there is not enough room to draw the group. But that is not happening. Is this a bug?</DIV><DIV>&nbsp;</DIV><DIV>So ... how do I set an icon for a group that is not the same as the group ID that will actually be displayed&nbsp;on the QAT or&nbsp;on the ribbon&nbsp;because there is not enough room on the ribbon to display the group itself?</DIV>]]>
   </description>
   <pubDate>Wed, 24 Mar 2010 18:53:26 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=16509&amp;PID=57777&amp;title=how-to-use-cxtpribbongroupseticonid#57777</guid>
  </item> 
 </channel>
</rss>