<?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 : &quot;Change Button Image&quot; icons</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Command Bars : &quot;Change Button Image&quot; icons]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Wed, 13 May 2026 00:00:57 +0000</pubDate>
  <lastBuildDate>Tue, 06 Jan 2009 12:46:07 +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=13009</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[&quot;Change Button Image&quot; icons : Ah, I would have never figured...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=13009&amp;PID=44210&amp;title=change-button-image-icons#44210</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3558">briansweat</a><br /><strong>Subject:</strong> 13009<br /><strong>Posted:</strong> 06 January 2009 at 12:46pm<br /><br />Ah, I would have never figured that out.&nbsp; Thanks so much!<br><br>Instead of using my existing (shared) ImageManager, I will create another ImageManager just for the CustomIcons.<br><br>Thanks again!<br>]]>
   </description>
   <pubDate>Tue, 06 Jan 2009 12:46:07 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=13009&amp;PID=44210&amp;title=change-button-image-icons#44210</guid>
  </item> 
  <item>
   <title><![CDATA[&quot;Change Button Image&quot; icons :  It is just a problem with IDs....]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=13009&amp;PID=44195&amp;title=change-button-image-icons#44195</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=369">SuperMario</a><br /><strong>Subject:</strong> 13009<br /><strong>Posted:</strong> 06 January 2009 at 8:35am<br /><br />It is just a problem with IDs.&nbsp; 1001 will never work unless you are trying to display 1001 images in the menu.<br><br>I simply changed the ID in your sample from 1001 to 32 in the imagemanager and it works fine.<br><br>Here is why:<br><br>When adding icons, the IconId must start with 1 and increment by 1 for each icon added.&nbsp; So the IconId will be numbered 1,2,3,4,...N.<br><br>The suite provides 42 "built-in" icons that you can choose from and they are automatically displayed in the "Change Button Icon" popup menu if you do not remove them.&nbsp; If you do not remove the "built-in" icons that are provided with the toolkit then you should start your numbering at 43.&nbsp; If you start at 1 and you did not remove the "built-in" icons, then you will overwrite some of the "built-in" icons.&nbsp; So you would number your icons 43,44,45,...N.&nbsp; So you could even keep some of the "built-in" icons and overwrite the ones you don't need with your own custom icons.<br><br>I changed the Id in your sample to 32 because we removed the original 42 icons first, then we added 31 of our own in the single bitmap.<br><br>Hope this helps<br>]]>
   </description>
   <pubDate>Tue, 06 Jan 2009 08:35:07 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=13009&amp;PID=44195&amp;title=change-button-image-icons#44195</guid>
  </item> 
  <item>
   <title><![CDATA[&quot;Change Button Image&quot; icons : Thank you so much for your help,...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=13009&amp;PID=44166&amp;title=change-button-image-icons#44166</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3558">briansweat</a><br /><strong>Subject:</strong> 13009<br /><strong>Posted:</strong> 05 January 2009 at 4:42pm<br /><br />Thank you so much for your help, but I'm still not getting anywhere <img src="http://forum.codejock.com/smileys/smiley19.gif" border="0" align="absmiddle"><br><br>Using an ImageManager in conjunction with LoadBitmap works for me.&nbsp; Icons saved in the ImageManager at design-time do not work.&nbsp; I've attached a variation of the MDISample illustrating the problem...<br><br><span style="text-decorati&#111;n: underline;"></span><a href="uploads/20090105_163417_MDISample_Custo.zip" target="_blank"><a href="uploads/20090105_163737_MDISample_Custo.zip" target="_blank">uploads/20090105_163737_MDISample_Custo.zip</a></a><br><br>I added the dropper.cur image (from sample directory) to the ImageManager1 at design-time.&nbsp; At run-time, it's displaying the icons from the bitmap successfully, followed by one blank button where the dropper image should be.<br><br>I'm using the same Icon Id convention that's in my project (ie 10001).<br>]]>
   </description>
   <pubDate>Mon, 05 Jan 2009 16:42:01 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=13009&amp;PID=44166&amp;title=change-button-image-icons#44166</guid>
  </item> 
  <item>
   <title><![CDATA[&quot;Change Button Image&quot; icons : Was that helpful? Should be no...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=13009&amp;PID=44162&amp;title=change-button-image-icons#44162</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=369">SuperMario</a><br /><strong>Subject:</strong> 13009<br /><strong>Posted:</strong> 05 January 2009 at 2:48pm<br /><br />Was that helpful?&nbsp; Should be no reason to disable the feature from your software<img src="http://forum.codejock.com/smileys/smiley2.gif" border="0" align="absmiddle">]]>
   </description>
   <pubDate>Mon, 05 Jan 2009 14:48:55 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=13009&amp;PID=44162&amp;title=change-button-image-icons#44162</guid>
  </item> 
  <item>
   <title><![CDATA[&quot;Change Button Image&quot; icons :  A simple modification to the...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=13009&amp;PID=44156&amp;title=change-button-image-icons#44156</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=369">SuperMario</a><br /><strong>Subject:</strong> 13009<br /><strong>Posted:</strong> 05 January 2009 at 1:15pm<br /><br />A simple modification to the end of that method:<br><br>&nbsp;&nbsp; ImageManager1.Icons.LoadBitmap App.Path &amp; "\Icons\CustomButtonIcons.bmp", ChangeButtonImageIconArray, xtpImageNormal<br>&nbsp;&nbsp; Options.CustomIcons.AddIcons ImageManager1.Icons<br><br>I simply added a imagemanager control to the MDI Form.&nbsp; I loaded the images from that same file into the imagemanager to save me time, but you can see it works from imagemanager as well.<br><br>Maybe attach your project?&nbsp; Must be a problem with ids or something?<br>]]>
   </description>
   <pubDate>Mon, 05 Jan 2009 13:15:36 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=13009&amp;PID=44156&amp;title=change-button-image-icons#44156</guid>
  </item> 
  <item>
   <title><![CDATA[&quot;Change Button Image&quot; icons :    SuperMario wrote:CommandBarsMDISample...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=13009&amp;PID=44152&amp;title=change-button-image-icons#44152</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3558">briansweat</a><br /><strong>Subject:</strong> 13009<br /><strong>Posted:</strong> 05 January 2009 at 12:39pm<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 />CommandBarsMDISample for VB6 has a sample on how to do this with some helpful comments.</td></tr></table><br><br>Thanks, I've looked at the method in the CommandBarsMDISample.&nbsp; The LoadBitmap function uses a bitmap in the file system.&nbsp; However, I'm using a CodeJock ImageManager control to store my icons.<br><br>Of course, I could export the icons to a temp folder and use this method.&nbsp; At this point, I will probably just clear the list and remove this functionality :(<br>]]>
   </description>
   <pubDate>Mon, 05 Jan 2009 12:39:11 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=13009&amp;PID=44152&amp;title=change-button-image-icons#44152</guid>
  </item> 
  <item>
   <title><![CDATA[&quot;Change Button Image&quot; icons : CommandBarsMDISample for VB6 has...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=13009&amp;PID=44150&amp;title=change-button-image-icons#44150</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=369">SuperMario</a><br /><strong>Subject:</strong> 13009<br /><strong>Posted:</strong> 05 January 2009 at 12:29pm<br /><br />CommandBarsMDISample for VB6 has a sample on how to do this with some helpful comments.]]>
   </description>
   <pubDate>Mon, 05 Jan 2009 12:29:43 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=13009&amp;PID=44150&amp;title=change-button-image-icons#44150</guid>
  </item> 
  <item>
   <title><![CDATA[&quot;Change Button Image&quot; icons :  Thanks! I&amp;#039;m definitely...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=13009&amp;PID=43923&amp;title=change-button-image-icons#43923</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3558">briansweat</a><br /><strong>Subject:</strong> 13009<br /><strong>Posted:</strong> 26 December 2008 at 11:48am<br /><br />Thanks!&nbsp; I'm definitely on the right track now.<br><br>However, the custom icons are not being displayed.&nbsp; I have 32 icons in my ImageManager and I see 32 <b>blank</b> placeholders now.&nbsp; I have both 16x16 and 24x24 variants stored for icon in my ImageManager.<br><br><img src="uploads/20081226_114941_Change_Butt&#111;n_I.png" height="161" width="292" border="0"><br><br>I'm calling the RemoveAll method to clear the list first.&nbsp; Then, I'm calling Options.CustomIcons.AddIcons and passing a reference to the Icons collection of the ImageManager control...<br><br><table width="99%"><tr><td><pre class="BBcode">Private Sub CommandBars_Customization(ByVal Options As XtremeCommandBars.ICustomizeOptions)<br>&nbsp; Options.CustomIcons.RemoveAll<br>&nbsp; Options.CustomIcons.AddIcons fCommon.ImageManager.Icons<br>End Sub</pre></td></tr></table><br><br>I initially tried the following code, but receive an "Object doesn't support this property or method" error...<br><br><table width="99%"><tr><td><pre class="BBcode">Private Sub CommandBars_Customization(ByVal Options As XtremeCommandBars.ICustomizeOptions)<br>&nbsp; Set Options.CustomIcons = fCommon.ImageManager.Icons<br>End Sub</pre></td></tr></table><br>]]>
   </description>
   <pubDate>Fri, 26 Dec 2008 11:48:00 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=13009&amp;PID=43923&amp;title=change-button-image-icons#43923</guid>
  </item> 
  <item>
   <title><![CDATA[&quot;Change Button Image&quot; icons : Hi,  CatchCustomization event...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=13009&amp;PID=43887&amp;title=change-button-image-icons#43887</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 13009<br /><strong>Posted:</strong> 24 December 2008 at 12:31am<br /><br />Hi,<DIV>&nbsp;</DIV><DIV>Catch&nbsp;Customization event and set &nbsp;CustomizeOptions.CustomIcons property.</DIV>]]>
   </description>
   <pubDate>Wed, 24 Dec 2008 00:31:38 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=13009&amp;PID=43887&amp;title=change-button-image-icons#43887</guid>
  </item> 
  <item>
   <title><![CDATA[&quot;Change Button Image&quot; icons : I&amp;#039;m having trouble setting...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=13009&amp;PID=43884&amp;title=change-button-image-icons#43884</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3558">briansweat</a><br /><strong>Subject:</strong> 13009<br /><strong>Posted:</strong> 23 December 2008 at 6:17pm<br /><br />I'm having trouble setting the icons for the "Change Button Image" function in the Customize menu for an individual Command Bar Control.<br><br><img src="uploads/20081223_181219_Change_Butt&#111;n_I.png" height="161" width="314" border="0"><br><br>All icons are loaded into an ImageManager control at design-time.&nbsp; I've tried updating CommandBars.GlobalSettings.Icons and the Icons collections for the individual CommandBar.<br><br>Does anyone know where this icon list is located?<br>]]>
   </description>
   <pubDate>Tue, 23 Dec 2008 18:17:13 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=13009&amp;PID=43884&amp;title=change-button-image-icons#43884</guid>
  </item> 
 </channel>
</rss>