<?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 : ImageManager</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Toolkit Pro : ImageManager]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Sun, 19 Apr 2026 10:51:37 +0000</pubDate>
  <lastBuildDate>Fri, 21 Sep 2007 00:42: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=8108</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[ImageManager : Hello,  Yes, by default all...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=8108&amp;PID=26222&amp;title=imagemanager#26222</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 8108<br /><strong>Posted:</strong> 21 September 2007 at 12:42am<br /><br />Hello,<DIV>&nbsp;</DIV><DIV>Yes, by default all CommandBars use same ImageManager</DIV><DIV>you can </DIV><DIV>1. Create separate ImageManager fro each CommandBars:</DIV><DIV>&nbsp;</DIV><DIV>GetCommandBars()-&gt;SetImageManager(new CXTPImageManager()));</DIV><DIV>&nbsp;</DIV><DIV>2. or try not repeat Ids for buttons. Check your resource.h files and manually edit it to remove all dublicate resources.</DIV>]]>
   </description>
   <pubDate>Fri, 21 Sep 2007 00:42:55 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=8108&amp;PID=26222&amp;title=imagemanager#26222</guid>
  </item> 
  <item>
   <title><![CDATA[ImageManager : Hi, I am working on an issue with...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=8108&amp;PID=26215&amp;title=imagemanager#26215</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3321">Haris</a><br /><strong>Subject:</strong> 8108<br /><strong>Posted:</strong> 20 September 2007 at 7:54pm<br /><br />Hi, I am working on an issue with icons being replaced by their tooltip text when using Image Manager.<DIV>&nbsp;</DIV><DIV>My code looks like:</DIV><DIV>CXTPImageManager* pImageManager;</DIV><DIV>if (curIcon != NULL)<BR>{<BR>&nbsp;&nbsp;&nbsp;//pActionControl-&gt;SetCustomIcon(curIcon);<BR>&nbsp;&nbsp;&nbsp;CSize cSize(BUTTONSIZE,BUTTONSIZE);<BR>&nbsp;&nbsp;&nbsp;pImageManager = GetImageManager();<BR>&nbsp;&nbsp;&nbsp;BOOL bSuccess = pImageManager-&gt;SetIcon(curIcon,&nbsp; cmdId, cSize);<BR>&nbsp;&nbsp;&nbsp;DestroyIcon(curIcon);<BR>}</DIV><DIV>&nbsp;</DIV><DIV>-pActionControl is of type CXTPControl*</DIV><DIV>&nbsp;</DIV><DIV>If I open multiple charts and they both use this control then after closing one of the charts, the icons for 2nd chart are replaced by their tooltip text and the icon disappears. </DIV><DIV>&nbsp;</DIV><DIV>After investigating this further, it appears SetIcon only adds the image to the image manager once and when I hit the OnDestroy of my class it is cleaned up. Therefore, the icons disappear from the 2nd chart.</DIV><DIV>&nbsp;</DIV><DIV>I have tried creating a seperate ImageManager object for each class in the constructor that uses GetImageManager but that didn't help: </DIV><DIV>CXTPImageManager* pImageManager = new CXTPImageManager();<BR>SetImageManager(pImageManager);</DIV><DIV>&nbsp;</DIV><DIV><DIV>Please note that this does not happen if I use SetCustomIcon&nbsp;instead of&nbsp;using Image Manager and SetIcon. Also, code above for Image Manager and SetIcon seems to work with CXTPControlButton.</DIV><DIV>&nbsp;</DIV><DIV>Following works fine:</DIV><DIV>CXTPImageManager* pImageManager;</DIV><DIV>if (hCurIcon != NULL)<BR>{<BR>&nbsp;&nbsp;&nbsp;&nbsp;//nextButton-&gt;SetCustomIcon(hCurIcon);<BR>&nbsp;&nbsp;&nbsp;&nbsp;pImageManager = GetImageManager();<BR>&nbsp;&nbsp;&nbsp;&nbsp;BOOL bSuccess = pImageManager-&gt;SetIcon(hCurIcon, IDM_NEXT_PATIENT, cSize);<BR>&nbsp;&nbsp;&nbsp;&nbsp;DestroyIcon(hCurIcon);</DIV><DIV>}</DIV><DIV>&nbsp;</DIV><DIV>- nextButton is of type CXTPControlButton</DIV><DIV>&nbsp;</DIV><DIV>Can Image Manager be used with anything other than CXTPControlButton? Am I doing something wrong here? </DIV><DIV>&nbsp;</DIV><DIV>I am new to codejock so any help you can provide will be much appreciated!</DIV><DIV>&nbsp;</DIV><DIV>Thanks,</DIV><DIV>Haris</DIV></DIV><DIV>&nbsp;</DIV>]]>
   </description>
   <pubDate>Thu, 20 Sep 2007 19:54:03 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=8108&amp;PID=26215&amp;title=imagemanager#26215</guid>
  </item> 
 </channel>
</rss>