<?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 : Big icon in xtpControlButtonPopup</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Command Bars : Big icon in xtpControlButtonPopup]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Sat, 30 May 2026 18:32:19 +0000</pubDate>
  <lastBuildDate>Sat, 10 May 2008 11:32:45 +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=10578</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[Big icon in xtpControlButtonPopup : Seems this did the trick (maybe...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=10578&amp;PID=35066&amp;title=big-icon-in-xtpcontrolbuttonpopup#35066</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2198">znakeeye</a><br /><strong>Subject:</strong> 10578<br /><strong>Posted:</strong> 10 May 2008 at 11:32am<br /><br />Seems this did the trick (maybe you can explain why it works? :P)<DIV><FONT color=#040004 size=2></FONT>&nbsp;</DIV><DIV><FONT color=#040004 size=2>When creating the popup-item:</FONT></DIV><DIV><DIV><FONT color=#040004 size=2>XTPImageManager</FONT><FONT size=2>()-&gt;</FONT><FONT color=#040004 size=2>SetIcon</FONT><FONT size=2>(</FONT><FONT color=#040004 size=2>hLargeIcon</FONT><FONT size=2>, </FONT><FONT color=#040004 size=2>pControl</FONT><FONT size=2>-&gt;</FONT><FONT color=#040004 size=2>GetID</FONT><FONT size=2>(), </FONT><FONT color=#040004 size=2>CSize</FONT><FONT size=2>(32, 32));</DIV></FONT></DIV><DIV><FONT color=#040004 size=2>XTPImageManager</FONT><FONT size=2>()-&gt;</FONT><FONT color=#040004 size=2>SetIcon</FONT><FONT size=2>(</FONT><FONT color=#040004 size=2>hSmallIcon</FONT><FONT size=2>, </FONT><FONT color=#040004 size=2>pControl</FONT><FONT size=2>-&gt;</FONT><FONT color=#040004 size=2>GetID</FONT><FONT size=2>(), </FONT><FONT color=#040004 size=2>CSize</FONT><FONT size=2>(16, 16));</FONT></DIV><DIV><FONT size=2></FONT>&nbsp;</DIV><DIV><FONT size=2>When selecting the popup-item:</FONT></DIV><DIV><FONT size=2>m_selectedIconID = <FONT color=#040004 size=2>tagNMCONTROL</FONT><FONT size=2>-&gt;</FONT><FONT color=#040004 size=2>pControl</FONT><FONT size=2>-&gt;</FONT><FONT color=#040004 size=2>GetIconId</FONT><FONT size=2>();</FONT></FONT></DIV><DIV><FONT size=2></FONT>&nbsp;</DIV><DIV><FONT size=2>Then in the update-handler of the popup itself:</FONT></DIV><DIV><FONT size=2><FONT color=#040004 size=2>pPopup</FONT><FONT size=2>-&gt;</FONT><FONT color=#040004 size=2>SetIconId</FONT><FONT size=2>(</FONT><FONT color=#040004 size=2>m_selectedIconID</FONT><FONT size=2>);</DIV></FONT></FONT>]]>
   </description>
   <pubDate>Sat, 10 May 2008 11:32:45 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=10578&amp;PID=35066&amp;title=big-icon-in-xtpcontrolbuttonpopup#35066</guid>
  </item> 
  <item>
   <title><![CDATA[Big icon in xtpControlButtonPopup : I have a popup-menu in my ribbon....]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=10578&amp;PID=35065&amp;title=big-icon-in-xtpcontrolbuttonpopup#35065</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2198">znakeeye</a><br /><strong>Subject:</strong> 10578<br /><strong>Posted:</strong> 10 May 2008 at 11:27am<br /><br />I have a popup-menu in my ribbon. Its drop-down menu contains ~10 items with their corresponding small icons. When I select these sub-items, I want the button in the ribbon to get its <U>big</U> icon.<DIV></DIV><DIV></DIV><DIV>&nbsp;</DIV><DIV>That way, the user understands which item is selected.</DIV><DIV>&nbsp;</DIV><DIV><strong>Q: How do I update this big icon elegantly?</strong></DIV><DIV>&nbsp;</DIV><DIV>At the moment I store the icon-ID of the menu item when it is being selected, and then call pControl-&gt;SetIconIndex in the update-handler of the popup-button. Hence, I get a 16x16-icon when I want a 32x32-icon!</DIV><DIV>&nbsp;</DIV><DIV>I believe <FONT color=#040004 size=2>CXTPControlButton should be able to hold two icons! Then I could call this in the menu-handler:</FONT></DIV><DIV><FONT color=#040004 size=2>m_selectedIconID = pControl-&gt;GetLargeIconID();</FONT></DIV><DIV><FONT color=#040004 size=2></FONT>&nbsp;</DIV><DIV><FONT color=#040004 size=2>Any other ideas?</FONT></DIV>]]>
   </description>
   <pubDate>Sat, 10 May 2008 11:27:15 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=10578&amp;PID=35065&amp;title=big-icon-in-xtpcontrolbuttonpopup#35065</guid>
  </item> 
 </channel>
</rss>