<?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 : Dynamically building a tool bar</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Command Bars : Dynamically building a tool bar]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Sat, 13 Jun 2026 07:39:39 +0000</pubDate>
  <lastBuildDate>Wed, 23 Dec 2009 07:33:55 +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=15904</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[Dynamically building a tool bar : Hi,  Instead pImageManager-&amp;gt;SetImageList...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=15904&amp;PID=55817&amp;title=dynamically-building-a-tool-bar#55817</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 15904<br /><strong>Posted:</strong> 23 December 2009 at 7:33am<br /><br />Hi,<DIV>&nbsp;</DIV><DIV>Instead <FONT color=#000099 face="Courier New">pImageManager-&gt;SetImageList use pImageManager-&gt;SetIcons(...) and manually sepecify what icons you have in imagelist in parameters.</FONT></DIV>]]>
   </description>
   <pubDate>Wed, 23 Dec 2009 07:33:55 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=15904&amp;PID=55817&amp;title=dynamically-building-a-tool-bar#55817</guid>
  </item> 
  <item>
   <title><![CDATA[Dynamically building a tool bar : I&amp;#039;m trying to switch from...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=15904&amp;PID=55791&amp;title=dynamically-building-a-tool-bar#55791</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=5779">Defta</a><br /><strong>Subject:</strong> 15904<br /><strong>Posted:</strong> 21 December 2009 at 12:26pm<br /><br />I'm trying to switch from my existing straight MFC code for building dynamic tool bars to Code Jock.&nbsp; The task is to build the tool bar from a CImageList and a set of command ids.&nbsp; It's fairly straightforward in MFC, just bind the image list to the underlying CToolBarCtrl and then call SetButtons() with the command ids.<DIV>&nbsp;</DIV><DIV>The analog in CodeJock seems to be to get the images into a CTXPImageManager instance and call SetImageManager(), then call SetButtons().&nbsp;&nbsp; I've tried the following, assuming 8 commands to be in the tool bar.&nbsp; The CImageList is already built (pMyImageList) and anMyCommands holds the vector of command ids.</DIV><DIV>&nbsp;</DIV><DIV><FONT face="Courier New, Courier, mono" color=#000099>CXTPImageManager * pImageManager = new CXTPImageManager;</FONT></DIV><DIV><FONT face="Courier New, Courier, mono" color=#000099>pImageManager-&gt;SetImageList( pMyImageList, 9001 );</FONT></DIV><DIV><FONT face="Courier New, Courier, mono" color=#000099>pToolBar-&gt;SetImageManager( pImageManager );</FONT></DIV><DIV><FONT face="Courier New, Courier, mono" color=#000099>pToolBar-&gt;SetButtons( anMyCommands, 8 );</FONT></DIV><DIV>&nbsp;</DIV><DIV>There are two problems I've encountered.&nbsp; </DIV><DIV>&nbsp;</DIV><DIV>1) Unlike MFC, where commands can have any ids, CJ seems to require my tool bar commands to be contiguously-numbered.&nbsp; In the example above, if they are 9001-9008, it works.&nbsp; If they are discontinguous, it doesn't.&nbsp; This is more of an annoyance than a problem, but I'd like to know if there is any way around this?</DIV><DIV>&nbsp;</DIV><DIV>2)&nbsp;The images associated dropdown menus in the frame window do not match the images I assign in this process.&nbsp; I get blanks next to the menu item unlike what happens when LoadToolBar() is used.&nbsp; How can I get them to synch to the toolbar images specified by this approach?</DIV><DIV>&nbsp;</DIV><DIV><FONT color=#ffffff size=1><FONT color=#ffffff size=1>ageManager</FONT></FONT></DIV>]]>
   </description>
   <pubDate>Mon, 21 Dec 2009 12:26:51 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=15904&amp;PID=55791&amp;title=dynamically-building-a-tool-bar#55791</guid>
  </item> 
 </channel>
</rss>