<?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 : Questions about Icons</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Command Bars : Questions about Icons]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Thu, 11 Jun 2026 23:20:33 +0000</pubDate>
  <lastBuildDate>Tue, 09 Sep 2008 09:17:58 +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=12056</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[Questions about Icons : Tech support provided the answer.  Need...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=12056&amp;PID=40850&amp;title=questions-about-icons#40850</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=4382">Number8</a><br /><strong>Subject:</strong> 12056<br /><strong>Posted:</strong> 09 September 2008 at 9:17am<br /><br />Tech support provided the answer.<br /><br />Need to pass a SafeArray that can be cast to Variant to LoadBitmap().<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;CComSafeArray&lt;int&gt; safeCommands(_countof(cmds));<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;for (int i = 0; i &lt; _countof(cmds); ++i) {<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;safeCommands.SetAt(i, cmds<em>);<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;HRESULT hr = pIcons-&gt;LoadBitmap(bstrName, CComVariant((LPSAFEARRAY)safeCommands), xtpImageNormal);<br /><br />]]>
   </description>
   <pubDate>Tue, 09 Sep 2008 09:17:58 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=12056&amp;PID=40850&amp;title=questions-about-icons#40850</guid>
  </item> 
  <item>
   <title><![CDATA[Questions about Icons :   SuperMario wrote:CommandBars.Icons...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=12056&amp;PID=40713&amp;title=questions-about-icons#40713</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=4382">Number8</a><br /><strong>Subject:</strong> 12056<br /><strong>Posted:</strong> 04 September 2008 at 10:06am<br /><br /> <table width="99%"><tr><td class="BBquote"><img src="forum_images/quote_box.png" title="Originally posted by SuperMario" alt="Originally posted by SuperMario" style="vertical-align: text-bottom;" /> <strong>SuperMario wrote:</strong><br /><br />CommandBars.Icons = ImageManager.Icons;<br /></td></tr></table> <br />I'm confused:  _DCommandBars-&gt;GetIcons() returns a pointer to an ImageManagerIcons object.  ImageManagerIcons doesn't have an Icons property.<br /><br />struct __declspec(uuid("1616dc35-b997-432b-ab4f-439341a769e5"))<br />_DCommandBars : IDispatch<br />{<br />&nbsp;&nbsp;&nbsp;&nbsp;/* snip */&nbsp;&nbsp;&nbsp;&nbsp;__declspec(property(get=<strong>GetIcons</strong>,put=PutIcons))<br />&nbsp;&nbsp;&nbsp;&nbsp;IImageManagerIconsPtr Icons;<br />&nbsp;&nbsp;&nbsp;&nbsp;/* snip */<br />};<br />IImageManagerIcons : IDispatch<br />{<br />&nbsp;&nbsp;&nbsp;&nbsp;/* snip */<br />&nbsp;&nbsp;&nbsp;&nbsp;HRESULT LoadBitmap (<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; _bstr_t Path,<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; const _variant_t & Commands,<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; enum XTPImageState imageState );<br />&nbsp;&nbsp;&nbsp;&nbsp;/* snip */<br />&#093;;<br /><br />After calling LoadBitmap() on the ImageManagerIcons object, is there another step to adding it back to the CommandBars object?<br />Thanks for the reply.<br /><br />]]>
   </description>
   <pubDate>Thu, 04 Sep 2008 10:06:51 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=12056&amp;PID=40713&amp;title=questions-about-icons#40713</guid>
  </item> 
  <item>
   <title><![CDATA[Questions about Icons : CommandBars.Icons = ImageManager.Icons; ...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=12056&amp;PID=40709&amp;title=questions-about-icons#40709</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=369">SuperMario</a><br /><strong>Subject:</strong> 12056<br /><strong>Posted:</strong> 04 September 2008 at 8:25am<br /><br />CommandBars.Icons = ImageManager.Icons;]]>
   </description>
   <pubDate>Thu, 04 Sep 2008 08:25:48 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=12056&amp;PID=40709&amp;title=questions-about-icons#40709</guid>
  </item> 
  <item>
   <title><![CDATA[Questions about Icons : Hello,  Using SuitePro ActiveX...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=12056&amp;PID=40678&amp;title=questions-about-icons#40678</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=4382">Number8</a><br /><strong>Subject:</strong> 12056<br /><strong>Posted:</strong> 03 September 2008 at 7:46am<br /><br />Hello,<br /><br />Using SuitePro ActiveX 12.0.1.<br /><br />Could someone point me to the area in the documentation that describes how to get icons to appear on toolbar buttons?<br /><br />I am trying to load the icons from a bitmap and assign them to toolbar buttons like this:<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;_bstr_t bstrName ="C:\\Program Files\\Codejock Software\\ActiveX\\SuitePro ActiveX 12.0.1\\Samples\\CommandBars\\C#.NET\\RibbonSample\\res\\LargeIcons.bmp"; <br /><br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;int cmds&#091;18&#093;;<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;cmds&#091;0&#093; = M_FILE_NEW;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;cmds&#091;1&#093; = 2;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;/* etc */<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;IImageManagerIconsPtr  pIcons = pCommandBars-&gt;GetIcons();<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;pIcons-&gt;LoadBitmap(bstrName, cmds, xtpImageNormal);<br /><br /><br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;ICommandBarActionsPtr pActions = pCommandBars-&gt;GetActions();<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;pControls = pCommandBar-&gt;GetControls();<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;pAction = pActions-&gt;Add(M_FILE_NEW, _bstr_t("&New"), _bstr_t("Create a new document"), _bstr_t("Create a new document"), _bstr_t("File"));<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;pAction-&gt;IconId = M_FILE_NEW;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;pControls-&gt;Add(xtpControlButton, M_FILE_NEW, "");<br /><br /><br />However, no icons appear on the toolbars.<br />What am I doing wrong?<br /><br />I searched the samples for a use of LoadBitmap() or IconId in a .cpp file, but didn't find any.<br />I tried to follow the use of LoadBitmap() as used in some .cs files, but those uses of LoadBitmap() are for controls other than a CommandBar.<br /><br />Thanks for any pointers...<br /><br />UPDATE:<br />I tried explicitly setting the style:<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;pControl = pControls-&gt;Add(xtpControlButton, M_FILE_NEW, "");<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;pControl-&gt;PutDescriptionText(_bstr_t("Create a new document"));<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;pControl-&gt;PutStyle(xtpButtonIcon);<br />Still no icon...]]>
   </description>
   <pubDate>Wed, 03 Sep 2008 07:46:39 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=12056&amp;PID=40678&amp;title=questions-about-icons#40678</guid>
  </item> 
 </channel>
</rss>