<?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 : Ic&#111;ns or Bitmaps? Ic&#111;n size problem</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Command Bars : Ic&#111;ns or Bitmaps? Ic&#111;n size problem]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Wed, 13 May 2026 02:33:15 +0000</pubDate>
  <lastBuildDate>Sat, 13 Mar 2004 23:25:37 +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=482</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[Ic&#111;ns or Bitmaps? Ic&#111;n size problem :   In the next release a new...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=482&amp;PID=1337&amp;title=icons-or-bitmaps-icon-size-problem#1337</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=369">SuperMario</a><br /><strong>Subject:</strong> 482<br /><strong>Posted:</strong> 13 March 2004 at 11:25pm<br /><br />In the next release a new control is added called an IconManager whichis a member of the XtremeCommandBars.&nbsp; The IconManager is used toreplace the normal Microsoft ImageList.&nbsp; The support 32-bit AlphaIcons as well<img src="http://forum.codejock.com/smileys/smiley4.gif" border="0">&nbsp; When an Image isadded it automatically generates a disabled and hot images.&nbsp; Theimages are added by the index value associated with a CommandBarscontrol in the toolbar.&nbsp; For example, Const ID_FILE_NEW = 100 isdeclared in the General code section, then in the IconManager controlyou add 100 and the appropriate images.&nbsp; Another nice feature isyou can add multiple size images for each icon, for example, you canadd both 16x16 and 32x32 icons and simply set the LargeIcons propertyto true to use the larger set of icons.&nbsp; Ther are probably a fewother features I can't think of right now, but this is a great newaddition.<img src="http://forum.codejock.com/smileys/smiley17.gif" border="0">&nbsp; <br><span style="font-size:10px"><br /><br />Edited by SuperMario</span>]]>
   </description>
   <pubDate>Sat, 13 Mar 2004 23:25:37 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=482&amp;PID=1337&amp;title=icons-or-bitmaps-icon-size-problem#1337</guid>
  </item> 
  <item>
   <title><![CDATA[Ic&#111;ns or Bitmaps? Ic&#111;n size problem : I did want to warn you about a...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=482&amp;PID=1216&amp;title=icons-or-bitmaps-icon-size-problem#1216</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=260">Boyd</a><br /><strong>Subject:</strong> 482<br /><strong>Posted:</strong> 02 March 2004 at 7:52am<br /><br /><P>I did want to warn you about a bug in the Image List.&nbsp; Certain Unicode operating systems will not work with the image list when you use strings to identify the icon (i.e. by specifying the&nbsp;Key of the icon instead of the Index).&nbsp; I have avoided this by declaring constants for the Index of each of my icons instead of using the string Keys.</P><P>The following URL explains the bug in detail: <A href="http://www.vbaccelerator.com/home/VB/Code/C&#111;ntrols/ImageList/vbAccelerator_Image_List_C&#111;ntrol/bugTrak2-1.asp" target="_blank"> http://www.vbaccelerator.com/home/VB/Code/Controls/ImageList /vbAccelerator_Image_List_Control/bugTrak2-1.asp </A></P><P>I just wanted to warn you in case you deploy your application to some Unicode systems.</P><P>I'm glad I could help.</P>]]>
   </description>
   <pubDate>Tue, 02 Mar 2004 07:52:37 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=482&amp;PID=1216&amp;title=icons-or-bitmaps-icon-size-problem#1216</guid>
  </item> 
  <item>
   <title><![CDATA[Ic&#111;ns or Bitmaps? Ic&#111;n size problem : Thanks Boyd, that did the trick....]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=482&amp;PID=1212&amp;title=icons-or-bitmaps-icon-size-problem#1212</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=229">robs</a><br /><strong>Subject:</strong> 482<br /><strong>Posted:</strong> 01 March 2004 at 9:17pm<br /><br /><P>Thanks Boyd, that did the trick. That's some sweet code. It looks alot like the code from the staticbars sample except with comments.</P><P>When I get time, I'd like to redo the staticbars sample using a resource file to load low-res/high res, smalll/large, icons/bitmaps and post it. I'm suprised there haven't been more questions about using high-res icons with the commandbars.</P><P>Thanks again.</P>]]>
   </description>
   <pubDate>Mon, 01 Mar 2004 21:17:11 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=482&amp;PID=1212&amp;title=icons-or-bitmaps-icon-size-problem#1212</guid>
  </item> 
  <item>
   <title><![CDATA[Ic&#111;ns or Bitmaps? Ic&#111;n size problem : I&amp;#039;m using Icons. For some...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=482&amp;PID=1205&amp;title=icons-or-bitmaps-icon-size-problem#1205</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=260">Boyd</a><br /><strong>Subject:</strong> 482<br /><strong>Posted:</strong> 01 March 2004 at 11:30am<br /><br />I'm using Icons.&nbsp; For some of the CommandBars, I'm using the Designer Studio so that users can customize them.&nbsp; But for other CommandBars and certain popup menus, I'm creating them in code and using the .AddIconHandle method.&nbsp; If you&nbsp;take a look at the control on the vbAccelerator site, the .ItemCopyOfIcon&nbsp;property is the one&nbsp;that creates and returns an icon handle for use with the CommandBars.]]>
   </description>
   <pubDate>Mon, 01 Mar 2004 11:30:30 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=482&amp;PID=1205&amp;title=icons-or-bitmaps-icon-size-problem#1205</guid>
  </item> 
  <item>
   <title><![CDATA[Ic&#111;ns or Bitmaps? Ic&#111;n size problem : Thanks Boyd. I&amp;#039;ll have to...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=482&amp;PID=1203&amp;title=icons-or-bitmaps-icon-size-problem#1203</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=229">robs</a><br /><strong>Subject:</strong> 482<br /><strong>Posted:</strong> 01 March 2004 at 9:30am<br /><br /><P>Thanks Boyd. I'll have to check it out. So are you using Icons with it, or bitmaps?</P><P>&nbsp;</P>]]>
   </description>
   <pubDate>Mon, 01 Mar 2004 09:30:27 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=482&amp;PID=1203&amp;title=icons-or-bitmaps-icon-size-problem#1203</guid>
  </item> 
  <item>
   <title><![CDATA[Ic&#111;ns or Bitmaps? Ic&#111;n size problem : robs, Take a look at the vbAccelerator...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=482&amp;PID=1202&amp;title=icons-or-bitmaps-icon-size-problem#1202</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=260">Boyd</a><br /><strong>Subject:</strong> 482<br /><strong>Posted:</strong> 01 March 2004 at 8:27am<br /><br /><P>robs,</P><P>Take a look at the vbAccelerator site: <A href="http://www.vbaccelerator.com/home/VB/Code/C&#111;ntrols/ImageList/vbAccelerator_Image_List_C&#111;ntrol/article.asp" target="_blank"> http://www.vbaccelerator.com/home/VB/Code/Controls/ImageList /vbAccelerator_Image_List_Control/article.asp </A></P><P>They have an alternative to the VB Image List that supports up to 32-bit alpha icons.&nbsp; I use this Image List a lot, and it works with the .AddIconHandle method.&nbsp; They have other nice VB Controls as well with full source code.</P>]]>
   </description>
   <pubDate>Mon, 01 Mar 2004 08:27:56 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=482&amp;PID=1202&amp;title=icons-or-bitmaps-icon-size-problem#1202</guid>
  </item> 
  <item>
   <title><![CDATA[Ic&#111;ns or Bitmaps? Ic&#111;n size problem : Thanks for your input and effort....]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=482&amp;PID=1200&amp;title=icons-or-bitmaps-icon-size-problem#1200</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=229">robs</a><br /><strong>Subject:</strong> 482<br /><strong>Posted:</strong> 29 February 2004 at 2:38pm<br /><br /><P>Thanks for your input and effort. I think I'm going to go the bitmap route. I just need to figure out how to use bitmaps with .AddIconHandle.</P><P>I'm trying to use high-color bitmaps in a similar fashion to the static bars sample, except each bitmap must be contained in a resource file of a dll.</P><P>I pulled it off using icons, the only problem is that VB can't handle high-color icons. And when you use LoadResPicture it loads the icons in at 32x32 or what ever the system metric size is set to (small icons or large).</P><P>If I load in a high-res bitmap (32x32), get the icon handle, and throw it at .AddIconHandle, I can live with the stretching/shrinking to 16x16 and 48x48.</P><P>I know this sounds like a mess; I'll toy around with it and post some code if I can get it to work. Thanks again for your efforts.</P><P>&nbsp;</P>]]>
   </description>
   <pubDate>Sun, 29 Feb 2004 14:38:58 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=482&amp;PID=1200&amp;title=icons-or-bitmaps-icon-size-problem#1200</guid>
  </item> 
  <item>
   <title><![CDATA[Ic&#111;ns or Bitmaps? Ic&#111;n size problem :  Ok, I think this will do what...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=482&amp;PID=1199&amp;title=icons-or-bitmaps-icon-size-problem#1199</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=369">SuperMario</a><br /><strong>Subject:</strong> 482<br /><strong>Posted:</strong> 29 February 2004 at 1:52pm<br /><br />Ok, I think this will do what your are looking for.&nbsp; I have twocommand buttons and two ImageList controls.&nbsp; One imagelist controlhas 24x24 Bitmaps, the other has 32x32.&nbsp; When I click on eachcommand buton the toolbar images change.&nbsp; You could use oneImageList, but stretching 16x16 bitmaps to 48x48 looks reallyugly.&nbsp; So just add a separate ImageList for each size of Icons andplace the code below in the appropriate menu control.<img src="http://forum.codejock.com/smileys/smiley17.gif" border="0"><br><br>Private Sub cmdChangeIconSize24_Click()<br>&nbsp;&nbsp;&nbsp; CommandBars(2).SetIconSize 24, 24<br>&nbsp;&nbsp;&nbsp; CommandBars.AddImageList imlToolbarIcons24<br>&nbsp;&nbsp;&nbsp; CommandBars.RecalcLayout<br>End Sub<br><br>Private Sub cmdChangeIconSize32_Click()<br>&nbsp;&nbsp;&nbsp; CommandBars(2).SetIconSize 32, 32<br>&nbsp;&nbsp;&nbsp; CommandBars.AddImageList imlToolbarIcons32<br>&nbsp;&nbsp;&nbsp; CommandBars.RecalcLayout<br>End Sub<span style="font-size:10px"><br /><br />Edited by SuperMario</span>]]>
   </description>
   <pubDate>Sun, 29 Feb 2004 13:52:11 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=482&amp;PID=1199&amp;title=icons-or-bitmaps-icon-size-problem#1199</guid>
  </item> 
  <item>
   <title><![CDATA[Ic&#111;ns or Bitmaps? Ic&#111;n size problem : I&amp;#039;m not trying to have different...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=482&amp;PID=1198&amp;title=icons-or-bitmaps-icon-size-problem#1198</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=229">robs</a><br /><strong>Subject:</strong> 482<br /><strong>Posted:</strong> 29 February 2004 at 1:11pm<br /><br /><P>I'm not trying to have different icon sizes at the same time, but rather give the user an option. Some users of our applications use mouse (16x16 size), some use a stylus (16x16 or 32x32), and some use their finger(32x32 or 48x48).</P><P>So as you can see, it would be benifitial for me to load icons that have these 3 sizes and have the commandBars utilize them by using something like ToolBar.SetIconSize</P><P>Thanks SuperMario</P><P>&nbsp;</P>]]>
   </description>
   <pubDate>Sun, 29 Feb 2004 13:11:43 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=482&amp;PID=1198&amp;title=icons-or-bitmaps-icon-size-problem#1198</guid>
  </item> 
  <item>
   <title><![CDATA[Ic&#111;ns or Bitmaps? Ic&#111;n size problem : First of all, I prefer to use...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=482&amp;PID=1196&amp;title=icons-or-bitmaps-icon-size-problem#1196</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=369">SuperMario</a><br /><strong>Subject:</strong> 482<br /><strong>Posted:</strong> 29 February 2004 at 12:41pm<br /><br />First of all, I prefer to use BitMaps that stored in anImageList.&nbsp; Second, are you trying to have several different iconsizes in the same commandbar?&nbsp; When I am creating a toolbar thatrequires, say, 24x24 icons, I create some Bitmaps that are 24x24 andplace them in a ImageList.&nbsp; After I create the toolbar, I use theToolBar.SetIconSize 24, 24 to specify the icons are 24x24.&nbsp;&nbsp;Below is an example, I have an ImageList that has some BitMaps that are24x24 (they can be a different size but may look ugly if you use iconsand they are 16x16 but displayed as 24x24, thats why I like BitMaps,they look better stretched).&nbsp; I can change the numbers in theSetIconSize to 16x16, 48x48, etc and they all work fine.&nbsp; Doing itthis way you could have two toolbars with different IconSizes. <br><br>&nbsp;&nbsp;&nbsp;&nbsp; Dim ToolBar As ICommandBar<br>&nbsp;&nbsp;&nbsp;&nbsp; Set ToolBar = CommandBars.Add("Standard", xtpBarTop)<br>&nbsp;&nbsp;&nbsp;&nbsp; With ToolBar.Controls<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Set Control = .Add(xtpControlButton, ID_FILE_NEW, "&amp;New", -1, False)<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Control.DescriptionText = "Create a new document"<br>&nbsp;&nbsp;&nbsp;&nbsp; End With<br>&nbsp;&nbsp;&nbsp;&nbsp; ToolBar.SetIconSize 24, 24<br><br>Let me know if I need to explain this better.&nbsp; <img src="http://forum.codejock.com/smileys/smiley17.gif" border="0"><br>]]>
   </description>
   <pubDate>Sun, 29 Feb 2004 12:41:32 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=482&amp;PID=1196&amp;title=icons-or-bitmaps-icon-size-problem#1196</guid>
  </item> 
 </channel>
</rss>