<?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 : Toolbar button icons not shown</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Command Bars : Toolbar button icons not shown]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Thu, 11 Jun 2026 10:26:53 +0000</pubDate>
  <lastBuildDate>Tue, 26 Feb 2008 15:22:36 +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=9693</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[Toolbar button icons not shown : Actually by deafult All CommandBars...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=9693&amp;PID=31626&amp;title=toolbar-button-icons-not-shown#31626</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 9693<br /><strong>Posted:</strong> 26 February 2008 at 3:22pm<br /><br />Actually by deafult All CommandBars share same ImageMaanger to save some resources. Think you delete icons in one of them so it deletes icons for all commandbars.<DIV>&nbsp;</DIV><DIV>To use private icons for some commandbars call</DIV><DIV>&nbsp;</DIV><DIV>CommandBars.Options.UseSharedImageList = False</DIV>]]>
   </description>
   <pubDate>Tue, 26 Feb 2008 15:22:36 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=9693&amp;PID=31626&amp;title=toolbar-button-icons-not-shown#31626</guid>
  </item> 
  <item>
   <title><![CDATA[Toolbar button icons not shown : Oleg,   I created a test project...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=9693&amp;PID=31609&amp;title=toolbar-button-icons-not-shown#31609</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3701">Aaron</a><br /><strong>Subject:</strong> 9693<br /><strong>Posted:</strong> 26 February 2008 at 5:57am<br /><br />Oleg, <DIV>&nbsp;</DIV><DIV>I created a test project and copied the existing code into the new project. You wouldn't believe it, but it works !!!</DIV><DIV>&nbsp;</DIV><DIV>Now for my existing project. Loading the toolbar like this:</DIV><DIV>&nbsp;</DIV><DIV>Private function LoodToolbarItems()</DIV><DIV>&nbsp;&nbsp;&nbsp; CommandBarSubviews.Icons.RemoveAll<BR>&nbsp;&nbsp;&nbsp; CommandBarSubviews.Icons.LoadBitmap App.Path &amp; "\Views\AreaBackground\toolsviews.bmp", Array(301, 302, 303, 304, 305, 306, 307, 308), xtpImageNormal<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<BR>&nbsp;&nbsp;&nbsp; Set toolBarSubViews = CommandBarSubviews.Add("Tools subview", xtpBarTop)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; AddButton toolBarSubViews.Controls, xtpControlButton, ID_TOOLBAR_LEFT, "", True, "Moves selected item to the left", xtpButtonIcon, "ToolSubView", True<BR></DIV><DIV>''for every button AddButton.......</DIV><DIV>&nbsp;</DIV><DIV>End Function</DIV><DIV>&nbsp;</DIV><DIV>Private Function AddButton(Controls As CommandBarControls, ControlType As XtremeCommandBars.XTPControlType, Id As Long, Caption As String, Optional BeginGroup As Boolean = False, Optional DescriptionText As String = "", Optional ButtonStyle As XTPButtonStyle = xtpButtonAutomatic, Optional Category As String = "Controls", Optional ButtonClose As Boolean = True) As CommandBarControl<BR>&nbsp;&nbsp;&nbsp; Dim Control As CommandBarControl<BR>&nbsp;&nbsp;&nbsp; Set Control = Controls.Add(ControlType, Id, Caption)<BR>&nbsp;&nbsp;&nbsp; <BR>&nbsp;&nbsp;&nbsp; Control.BeginGroup = BeginGroup<BR>&nbsp;&nbsp;&nbsp; Control.DescriptionText = DescriptionText<BR>&nbsp;&nbsp;&nbsp; Control.Style = ButtonStyle<BR>&nbsp;&nbsp;&nbsp; Control.Category = Category<BR>&nbsp;&nbsp;&nbsp; Control.Enabled = True<BR>&nbsp;&nbsp;&nbsp; Control.CloseSubMenuOnClick = ButtonClose<BR>&nbsp;&nbsp;&nbsp; <BR>&nbsp;&nbsp;&nbsp; Set AddButton = Control<BR>&nbsp;&nbsp;&nbsp; <BR>End Function</DIV><DIV>&nbsp;</DIV><DIV><BR>&nbsp;</DIV><DIV>When&nbsp;everything is loaded I don't get images on the added buttons.</DIV><DIV>&nbsp;</DIV><DIV>I&nbsp;added a testbutton with just 2 lines of code:</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;&nbsp;&nbsp; CommandBarSubviews.Icons.RemoveAll</DIV><DIV>&nbsp;&nbsp;&nbsp; CommandBarSubviews.Icons.LoadBitmap App.Path &amp; "\Views\AreaBackground\toolsviews.bmp", Array(301, 302, 303, 304, 305, 306, 307, 308), xtpImageNormal<BR></DIV><DIV>&nbsp;</DIV><DIV>Now the icons will be shown!!!</DIV><DIV>&nbsp;</DIV><DIV>But it's getting really weird now. I have a mainview&nbsp;(a form) with commandbar (Name = CommandbarView)&nbsp;and&nbsp;I use the same images for positioning&nbsp;(like the subviews (Name = CommandbarSubview)). When I load the images for CommandbarView (same ID's) ,the icons in CommandbarSubviews&nbsp;will be shown as well??? </DIV><DIV>&nbsp;</DIV><DIV>Are you following me, Oleg? Is it possible that Commandbars somehow connects with eachother? The only thing they have is a common Button.ID</DIV><DIV>&nbsp;</DIV><DIV>I don't use Actions or anything else.</DIV><DIV>&nbsp;</DIV><DIV>This is hairpuller of the third kind, I believe.</DIV>]]>
   </description>
   <pubDate>Tue, 26 Feb 2008 05:57:22 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=9693&amp;PID=31609&amp;title=toolbar-button-icons-not-shown#31609</guid>
  </item> 
  <item>
   <title><![CDATA[Toolbar button icons not shown : Hi,  Show code where you add...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=9693&amp;PID=31583&amp;title=toolbar-button-icons-not-shown#31583</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 9693<br /><strong>Posted:</strong> 25 February 2008 at 2:18pm<br /><br /><P>Hi,</P><DIV>&nbsp;</DIV><DIV>Show code where you add buttons to toolbar.</DIV>]]>
   </description>
   <pubDate>Mon, 25 Feb 2008 14:18:51 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=9693&amp;PID=31583&amp;title=toolbar-button-icons-not-shown#31583</guid>
  </item> 
  <item>
   <title><![CDATA[Toolbar button icons not shown : Hi,   I have a usercontrol (which...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=9693&amp;PID=31564&amp;title=toolbar-button-icons-not-shown#31564</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3701">Aaron</a><br /><strong>Subject:</strong> 9693<br /><strong>Posted:</strong> 25 February 2008 at 9:00am<br /><br />Hi, <DIV>&nbsp;</DIV><DIV>I have a <U>usercontrol</U> (which will be loaded several times during runtime)&nbsp;and in each of these <U>usercontrols</U> I have a commandbar which will have a toolbar with 10 buttons (with icon). </DIV><DIV>&nbsp;</DIV><DIV>The problem is this: <strong><EM><U>The icons don't show on the buttons</U></EM></strong></DIV><DIV>&nbsp;</DIV><DIV>Loading the&nbsp;icons with function:</DIV><DIV>&nbsp;</DIV><DIV>CommandBars.Icons.LoadBitmap App.Path &amp; "\toolsviews.bmp", Array(301, 302, 303, 304, 305, 306, 307, 308, 309, 310), xtpImageNormal</DIV><DIV>(imageheight = 16)</DIV><DIV>&nbsp;</DIV><DIV>This is what I checked:</DIV><DIV>The buttons are loaded correctly (mouseover displays selection area)</DIV><DIV>The Icon ID's match loaded icon id (CommandBars_Execute event)</DIV><DIV>The number of icons in Commandbars (Commandbars.Icons.Count = 10)</DIV><DIV>&nbsp;</DIV><DIV>Any help would be appreciated. Thanks in advance</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV>]]>
   </description>
   <pubDate>Mon, 25 Feb 2008 09:00:44 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=9693&amp;PID=31564&amp;title=toolbar-button-icons-not-shown#31564</guid>
  </item> 
 </channel>
</rss>