<?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.Icons.AddIcon don&#039;t work correctly</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Command Bars : ImageManager.Icons.AddIcon don&#039;t work correctly]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Sat, 15 Aug 2026 08:17:39 +0000</pubDate>
  <lastBuildDate>Mon, 16 Jul 2007 01:47:09 +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=7582</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.Icons.AddIcon don&#039;t work correctly : bmp files also can have alpha...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=7582&amp;PID=24485&amp;title=imagemanager-icons-addicon-dont-work-correctly#24485</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 7582<br /><strong>Posted:</strong> 16 July 2007 at 1:47am<br /><br />bmp files also can have alpha layer. Photoshop 8/9/10 supports it.]]>
   </description>
   <pubDate>Mon, 16 Jul 2007 01:47:09 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=7582&amp;PID=24485&amp;title=imagemanager-icons-addicon-dont-work-correctly#24485</guid>
  </item> 
  <item>
   <title><![CDATA[ImageManager.Icons.AddIcon don&#039;t work correctly :   oleg wrote:Thanks for suggestion....]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=7582&amp;PID=24451&amp;title=imagemanager-icons-addicon-dont-work-correctly#24451</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3138">dimdar</a><br /><strong>Subject:</strong> 7582<br /><strong>Posted:</strong> 13 July 2007 at 7:10am<br /><br /><table width="99%"><tr><td class="BBquote"><img src="forum_images/quote_box.png" title="Originally posted by oleg" alt="Originally posted by oleg" style="vertical-align: text-bottom;" /> <strong>oleg wrote:</strong><br /><br />Thanks for suggestion. <DIV>&nbsp;</DIV><DIV>Actually if you are going use Alpha icons, I suggest you create alpha bitmaps instead - We support drawing alpha bitmaps for all OS. </DIV></td></tr></table> <DIV>&nbsp;</DIV><DIV>Sorry, but alpha bitmaps are .png files?</DIV>]]>
   </description>
   <pubDate>Fri, 13 Jul 2007 07:10:09 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=7582&amp;PID=24451&amp;title=imagemanager-icons-addicon-dont-work-correctly#24451</guid>
  </item> 
  <item>
   <title><![CDATA[ImageManager.Icons.AddIcon don&#039;t work correctly : Thanks for suggestion.  Actually...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=7582&amp;PID=24450&amp;title=imagemanager-icons-addicon-dont-work-correctly#24450</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 7582<br /><strong>Posted:</strong> 13 July 2007 at 7:01am<br /><br />Thanks for suggestion.<DIV>&nbsp;</DIV><DIV>Actually if you are going use Alpha icons, I suggest you create alpha bitmaps instead - We support drawing alpha bitmaps for all OS. </DIV>]]>
   </description>
   <pubDate>Fri, 13 Jul 2007 07:01:39 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=7582&amp;PID=24450&amp;title=imagemanager-icons-addicon-dont-work-correctly#24450</guid>
  </item> 
  <item>
   <title><![CDATA[ImageManager.Icons.AddIcon don&#039;t work correctly : Hi,  Many thanks&#8217; for you patient,...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=7582&amp;PID=24449&amp;title=imagemanager-icons-addicon-dont-work-correctly#24449</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3138">dimdar</a><br /><strong>Subject:</strong> 7582<br /><strong>Posted:</strong> 13 July 2007 at 6:27am<br /><br /><P =Ms&#111;normal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-GB style="mso-ansi-: EN-GB"><FONT size=3><FONT face="Times New Roman">Hi,<?:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /><o:p></o:p></FONT></FONT></SPAN></P><P =Ms&#111;normal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-GB style="mso-ansi-: EN-GB"><o:p><FONT face="Times New Roman" size=3>&nbsp;</FONT></o:p></SPAN></P><P =Ms&#111;normal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-GB style="mso-ansi-: EN-GB"><FONT size=3><FONT face="Times New Roman"><img src="https://forum.codejock.com/smileys/smiley32.gif" border="0">&nbsp;Many thanks’ for you patient, it works correctly now<img src="https://forum.codejock.com/smileys/smiley36.gif" border="0">.<o:p></o:p></FONT></FONT></SPAN></P><P =Ms&#111;normal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-GB style="mso-ansi-: EN-GB"><o:p><FONT face="Times New Roman" size=3>&nbsp;</FONT></o:p></SPAN></P><P =Ms&#111;normal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-GB style="mso-ansi-: EN-GB"><FONT size=3><FONT face="Times New Roman">I have just I suggest to you <img src="https://forum.codejock.com/smileys/smiley9.gif" border="0">: how you could know I can load icon with alpha support on .res directly&nbsp;but I can load it how custom resource. This sub loads a custom resource and returns a byte array.<o:p></o:p></FONT></FONT></SPAN></P><P =Ms&#111;normal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-GB style="mso-ansi-: EN-GB"><o:p><FONT face="Times New Roman" size=3>&nbsp;</FONT></o:p></SPAN></P><P =Ms&#111;normal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-GB style="mso-ansi-: EN-GB"><FONT size=3><FONT face="Times New Roman">Public Function LoadDllData(ByVal Index As Long, Optional ByVal ResFormat As String = "CUSTOM") As Byte()<o:p></o:p></FONT></FONT></SPAN></P><P =Ms&#111;normal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-GB style="mso-ansi-: EN-GB"><FONT size=3><FONT face="Times New Roman">'*************************************************************************<o:p></o:p></FONT></FONT></SPAN></P><P =Ms&#111;normal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-GB style="mso-ansi-: EN-GB"><FONT size=3><FONT face="Times New Roman">'* Loads raw data from a dll<o:p></o:p></FONT></FONT></SPAN></P><P =Ms&#111;normal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-GB style="mso-ansi-: EN-GB"><FONT size=3><FONT face="Times New Roman">'* Parameter:<o:p></o:p></FONT></FONT></SPAN></P><P =Ms&#111;normal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-GB style="mso-ansi-: EN-GB"><FONT size=3><FONT face="Times New Roman">'*<SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN>Index (required) :<SPAN style="mso-spacerun: yes">&nbsp;&nbsp; </SPAN>Integer specifying the Identifier (Id) of<o:p></o:p></FONT></FONT></SPAN></P><P =Ms&#111;normal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-GB style="mso-ansi-: EN-GB"><FONT size=3><FONT face="Times New Roman">'*<SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN>the data in the resource file.<o:p></o:p></FONT></FONT></SPAN></P><P =Ms&#111;normal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-GB style="mso-ansi-: EN-GB"><FONT size=3><FONT face="Times New Roman">'*<SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN>resformat (optional):<SPAN style="mso-spacerun: yes">&nbsp;&nbsp; </SPAN>Constant that specifies the type of<o:p></o:p></FONT></FONT></SPAN></P><P =Ms&#111;normal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-GB style="mso-ansi-: EN-GB"><FONT size=3><FONT face="Times New Roman">'*<SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN>the data:<o:p></o:p></FONT></FONT></SPAN></P><P =Ms&#111;normal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-GB style="mso-ansi-: EN-GB"><FONT size=3><FONT face="Times New Roman">'*<SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</SPAN>AVI, WAVE, RTF ,RCDATA ......<o:p></o:p></FONT></FONT></SPAN></P><P =Ms&#111;normal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-GB style="mso-ansi-: EN-GB"><FONT size=3><FONT face="Times New Roman">'*<SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN>default value: CUSTOM<o:p></o:p></FONT></FONT></SPAN></P><P =Ms&#111;normal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-GB style="mso-ansi-: EN-GB"><FONT size=3><FONT face="Times New Roman">'* Return value :<SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp; </SPAN>Byte-Array<o:p></o:p></FONT></FONT></SPAN></P><P =Ms&#111;normal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-GB style="mso-ansi-: EN-GB"><FONT size=3><FONT face="Times New Roman">'*************************************************************************<o:p></o:p></FONT></FONT></SPAN></P><P =Ms&#111;normal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-GB style="mso-ansi-: EN-GB"><o:p><FONT face="Times New Roman" size=3>&nbsp;</FONT></o:p></SPAN></P><P =Ms&#111;normal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-GB style="mso-ansi-: EN-GB"><FONT size=3><FONT face="Times New Roman"><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp; </SPAN>Dim hResInfo As Long<o:p></o:p></FONT></FONT></SPAN></P><P =Ms&#111;normal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-GB style="mso-ansi-: EN-GB"><FONT size=3><FONT face="Times New Roman"><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp; </SPAN>Dim hResData As Long<o:p></o:p></FONT></FONT></SPAN></P><P =Ms&#111;normal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-GB style="mso-ansi-: EN-GB"><FONT size=3><FONT face="Times New Roman"><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp; </SPAN>Dim pBuffer As Long<o:p></o:p></FONT></FONT></SPAN></P><P =Ms&#111;normal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-GB style="mso-ansi-: EN-GB"><FONT size=3><FONT face="Times New Roman"><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp; </SPAN>Dim nCount As Long<o:p></o:p></FONT></FONT></SPAN></P><P =Ms&#111;normal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-GB style="mso-ansi-: EN-GB"><FONT size=3><FONT face="Times New Roman"><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp; </SPAN>Dim bBuffer() As Byte<o:p></o:p></FONT></FONT></SPAN></P><P =Ms&#111;normal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-GB style="mso-ansi-: EN-GB"><FONT size=3><FONT face="Times New Roman"><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp; </SPAN><o:p></o:p></FONT></FONT></SPAN></P><P =Ms&#111;normal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-GB style="mso-ansi-: EN-GB"><FONT size=3><FONT face="Times New Roman"><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp; </SPAN>On Error Resume Next<o:p></o:p></FONT></FONT></SPAN></P><P =Ms&#111;normal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-GB style="mso-ansi-: EN-GB"><FONT size=3><FONT face="Times New Roman"><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN><o:p></o:p></FONT></FONT></SPAN></P><P =Ms&#111;normal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-GB style="mso-ansi-: EN-GB"><FONT size=3><FONT face="Times New Roman"><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp; </SPAN>Debug.Assert (m_hInstance &lt;&gt; 0)<o:p></o:p></FONT></FONT></SPAN></P><P =Ms&#111;normal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-GB style="mso-ansi-: EN-GB"><FONT size=3><FONT face="Times New Roman"><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp; </SPAN>' If you get this debug assertion, you forgot to load a dll<o:p></o:p></FONT></FONT></SPAN></P><P =Ms&#111;normal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-GB style="mso-ansi-: EN-GB"><FONT size=3><FONT face="Times New Roman"><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp; </SPAN>' Set the DllName property to a valId file before calling<o:p></o:p></FONT></FONT></SPAN></P><P =Ms&#111;normal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-GB style="mso-ansi-: EN-GB"><FONT size=3><FONT face="Times New Roman"><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp; </SPAN>' this method<o:p></o:p></FONT></FONT></SPAN></P><P =Ms&#111;normal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-GB style="mso-ansi-: EN-GB"><FONT size=3><FONT face="Times New Roman"><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp; </SPAN><o:p></o:p></FONT></FONT></SPAN></P><P =Ms&#111;normal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-GB style="mso-ansi-: EN-GB"><FONT size=3><FONT face="Times New Roman"><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp; </SPAN>hResInfo = FindResource(m_hInstance, Index, ResFormat)<o:p></o:p></FONT></FONT></SPAN></P><P =Ms&#111;normal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-GB style="mso-ansi-: EN-GB"><FONT size=3><FONT face="Times New Roman"><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp; </SPAN>' If you get this debug assertion, the resource you<o:p></o:p></FONT></FONT></SPAN></P><P =Ms&#111;normal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-GB style="mso-ansi-: EN-GB"><FONT size=3><FONT face="Times New Roman"><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp; </SPAN>' specified, was not found in the resource dll you are using<o:p></o:p></FONT></FONT></SPAN></P><P =Ms&#111;normal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-GB style="mso-ansi-: EN-GB"><FONT size=3><FONT face="Times New Roman"><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp; </SPAN>' Check the Id and the resource type<o:p></o:p></FONT></FONT></SPAN></P><P =Ms&#111;normal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-GB style="mso-ansi-: EN-GB"><FONT size=3><FONT face="Times New Roman"><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp; </SPAN>Debug.Assert (hResInfo &lt;&gt; 0)<o:p></o:p></FONT></FONT></SPAN></P><P =Ms&#111;normal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-GB style="mso-ansi-: EN-GB"><FONT size=3><FONT face="Times New Roman"><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp; </SPAN><o:p></o:p></FONT></FONT></SPAN></P><P =Ms&#111;normal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-GB style="mso-ansi-: EN-GB"><FONT size=3><FONT face="Times New Roman"><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp; </SPAN>If hResInfo &gt; 0 Then<o:p></o:p></FONT></FONT></SPAN></P><P =Ms&#111;normal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-GB style="mso-ansi-: EN-GB"><FONT size=3><FONT face="Times New Roman"><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN>nCount = SizeofResource(m_hInstance, hResInfo)<o:p></o:p></FONT></FONT></SPAN></P><P =Ms&#111;normal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-GB style="mso-ansi-: EN-GB"><FONT size=3><FONT face="Times New Roman"><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN>' We do not want to load empty data<o:p></o:p></FONT></FONT></SPAN></P><P =Ms&#111;normal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-GB style="mso-ansi-: EN-GB"><FONT size=3><FONT face="Times New Roman"><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN>If nCount = 0 Then<o:p></o:p></FONT></FONT></SPAN></P><P =Ms&#111;normal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-GB style="mso-ansi-: EN-GB"><FONT size=3><FONT face="Times New Roman"><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN>Exit Function<o:p></o:p></FONT></FONT></SPAN></P><P =Ms&#111;normal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-GB style="mso-ansi-: EN-GB"><FONT size=3><FONT face="Times New Roman"><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN>End If<o:p></o:p></FONT></FONT></SPAN></P><P =Ms&#111;normal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-GB style="mso-ansi-: EN-GB"><FONT size=3><FONT face="Times New Roman"><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN>' Load the resource into memory<o:p></o:p></FONT></FONT></SPAN></P><P =Ms&#111;normal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-GB style="mso-ansi-: EN-GB"><FONT size=3><FONT face="Times New Roman"><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN>hResData = LoadResource(m_hInstance, hResInfo)<o:p></o:p></FONT></FONT></SPAN></P><P =Ms&#111;normal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-GB style="mso-ansi-: EN-GB"><FONT size=3><FONT face="Times New Roman"><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN>If hResData &gt; 0 Then<o:p></o:p></FONT></FONT></SPAN></P><P =Ms&#111;normal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-GB style="mso-ansi-: EN-GB"><FONT size=3><FONT face="Times New Roman"><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN>' and lock it<o:p></o:p></FONT></FONT></SPAN></P><P =Ms&#111;normal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-GB style="mso-ansi-: EN-GB"><FONT size=3><FONT face="Times New Roman"><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN>pBuffer = LockResource(hResData)<o:p></o:p></FONT></FONT></SPAN></P><P =Ms&#111;normal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-GB style="mso-ansi-: EN-GB"><FONT size=3><FONT face="Times New Roman"><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN>' Fill byte array with memory block<o:p></o:p></FONT></FONT></SPAN></P><P =Ms&#111;normal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-GB style="mso-ansi-: EN-GB"><FONT size=3><FONT face="Times New Roman"><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN>ReDim bBuffer(nCount - 1)<o:p></o:p></FONT></FONT></SPAN></P><P =Ms&#111;normal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-GB style="mso-ansi-: EN-GB"><FONT size=3><FONT face="Times New Roman"><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN>CopyMemory bBuffer(0), ByVal pBuffer, nCount<o:p></o:p></FONT></FONT></SPAN></P><P =Ms&#111;normal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-GB style="mso-ansi-: EN-GB"><FONT size=3><FONT face="Times New Roman"><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN>Else<o:p></o:p></FONT></FONT></SPAN></P><P =Ms&#111;normal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-GB style="mso-ansi-: EN-GB"><FONT size=3><FONT face="Times New Roman"><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN>Err.Raise 31037, , "Error loading from file"<o:p></o:p></FONT></FONT></SPAN></P><P =Ms&#111;normal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-GB style="mso-ansi-: EN-GB"><FONT size=3><FONT face="Times New Roman"><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN>Exit Function<o:p></o:p></FONT></FONT></SPAN></P><P =Ms&#111;normal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-GB style="mso-ansi-: EN-GB"><FONT size=3><FONT face="Times New Roman"><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN>End If<o:p></o:p></FONT></FONT></SPAN></P><P =Ms&#111;normal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-GB style="mso-ansi-: EN-GB"><FONT size=3><FONT face="Times New Roman"><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp; </SPAN>Else<o:p></o:p></FONT></FONT></SPAN></P><P =Ms&#111;normal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-GB style="mso-ansi-: EN-GB"><FONT size=3><FONT face="Times New Roman"><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN>Err.Raise 326, , "Custom resource with Identifier " &amp; Format$(Index) &amp; " not found."<o:p></o:p></FONT></FONT></SPAN></P><P =Ms&#111;normal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-GB style="mso-ansi-: EN-GB"><FONT size=3><FONT face="Times New Roman"><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp; </SPAN>End If<o:p></o:p></FONT></FONT></SPAN></P><P =Ms&#111;normal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-GB style="mso-ansi-: EN-GB"><FONT size=3><FONT face="Times New Roman"><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp; </SPAN>LoadDllData = bBuffer<o:p></o:p></FONT></FONT></SPAN></P><P =Ms&#111;normal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-GB style="mso-ansi-: EN-GB"><FONT size=3><FONT face="Times New Roman">End Function<o:p></o:p></FONT></FONT></SPAN></P><P =Ms&#111;normal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-GB style="mso-ansi-: EN-GB"><o:p><FONT face="Times New Roman" size=3>&nbsp;</FONT></o:p></SPAN></P><P =Ms&#111;normal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-GB style="mso-ansi-: EN-GB"><FONT size=3><FONT face="Times New Roman">Public Property Let DllName(ByVal vData As String)<o:p></o:p></FONT></FONT></SPAN></P><P =Ms&#111;normal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-GB style="mso-ansi-: EN-GB"><FONT size=3><FONT face="Times New Roman">'*************************************************************************<o:p></o:p></FONT></FONT></SPAN></P><P =Ms&#111;normal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-GB style="mso-ansi-: EN-GB"><FONT size=3><FONT face="Times New Roman">'* Setting this property loads the specified dll. A previous loaded dll<o:p></o:p></FONT></FONT></SPAN></P><P =Ms&#111;normal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-GB style="mso-ansi-: EN-GB"><FONT size=3><FONT face="Times New Roman">'* will be unloaded.<o:p></o:p></FONT></FONT></SPAN></P><P =Ms&#111;normal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-GB style="mso-ansi-: EN-GB"><FONT size=3><FONT face="Times New Roman">'*************************************************************************<o:p></o:p></FONT></FONT></SPAN></P><P =Ms&#111;normal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-GB style="mso-ansi-: EN-GB"><FONT size=3><FONT face="Times New Roman"><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp; </SPAN>On Error Resume Next<o:p></o:p></FONT></FONT></SPAN></P><P =Ms&#111;normal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-GB style="mso-ansi-: EN-GB"><FONT size=3><FONT face="Times New Roman"><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp; </SPAN><o:p></o:p></FONT></FONT></SPAN></P><P =Ms&#111;normal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-GB style="mso-ansi-: EN-GB"><FONT size=3><FONT face="Times New Roman"><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp; </SPAN>If m_hInstance &lt;&gt; 0 Then FreeLibrary (m_hInstance)<o:p></o:p></FONT></FONT></SPAN></P><P =Ms&#111;normal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-GB style="mso-ansi-: EN-GB"><FONT size=3><FONT face="Times New Roman"><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp; </SPAN>m_hInstance = LoadLibrary(vData)<o:p></o:p></FONT></FONT></SPAN></P><P =Ms&#111;normal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-GB style="mso-ansi-: EN-GB"><FONT size=3><FONT face="Times New Roman"><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp; </SPAN><o:p></o:p></FONT></FONT></SPAN></P><P =Ms&#111;normal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-GB style="mso-ansi-: EN-GB"><FONT size=3><FONT face="Times New Roman"><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp; </SPAN>' If you get this debug assertion, your program cannot load<o:p></o:p></FONT></FONT></SPAN></P><P =Ms&#111;normal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-GB style="mso-ansi-: EN-GB"><FONT size=3><FONT face="Times New Roman"><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp; </SPAN>' the dll. Check the Path and the filename. The dll itself<o:p></o:p></FONT></FONT></SPAN></P><P =Ms&#111;normal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-GB style="mso-ansi-: EN-GB"><FONT size=3><FONT face="Times New Roman"><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp; </SPAN>' may be corrupt.<o:p></o:p></FONT></FONT></SPAN></P><P =Ms&#111;normal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-GB style="mso-ansi-: EN-GB"><FONT size=3><FONT face="Times New Roman"><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp; </SPAN>Debug.Assert (m_hInstance &lt;&gt; 0)<o:p></o:p></FONT></FONT></SPAN></P><P =Ms&#111;normal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-GB style="mso-ansi-: EN-GB"><FONT size=3><FONT face="Times New Roman"><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp; </SPAN><o:p></o:p></FONT></FONT></SPAN></P><P =Ms&#111;normal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-GB style="mso-ansi-: EN-GB"><FONT size=3><FONT face="Times New Roman"><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp; </SPAN>' Generate an runtime-error Identical to VB LoadResString<o:p></o:p></FONT></FONT></SPAN></P><P =Ms&#111;normal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-GB style="mso-ansi-: EN-GB"><FONT size=3><FONT face="Times New Roman"><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp; </SPAN>If m_hInstance = 0 Then<o:p></o:p></FONT></FONT></SPAN></P><P =Ms&#111;normal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-GB style="mso-ansi-: EN-GB"><FONT size=3><FONT face="Times New Roman"><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN>Err.Raise 48, , "Error in loading DLL: " &amp; vData<o:p></o:p></FONT></FONT></SPAN></P><P =Ms&#111;normal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-GB style="mso-ansi-: EN-GB"><FONT size=3><FONT face="Times New Roman"><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN>m_sDllName = vbNullString<o:p></o:p></FONT></FONT></SPAN></P><P =Ms&#111;normal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-GB style="mso-ansi-: EN-GB"><FONT size=3><FONT face="Times New Roman"><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp; </SPAN>Else<o:p></o:p></FONT></FONT></SPAN></P><P =Ms&#111;normal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-GB style="mso-ansi-: EN-GB"><FONT size=3><FONT face="Times New Roman"><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN>m_sDllName = vData<o:p></o:p></FONT></FONT></SPAN></P><P =Ms&#111;normal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-GB style="mso-ansi-: EN-GB"><FONT size=3><FONT face="Times New Roman"><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp; </SPAN>End If<o:p></o:p></FONT></FONT></SPAN></P><P =Ms&#111;normal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-GB style="mso-ansi-: EN-GB"><FONT size=3><FONT face="Times New Roman">End Property<o:p></o:p></FONT></FONT></SPAN></P><P =Ms&#111;normal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-GB style="mso-ansi-: EN-GB"><o:p><FONT face="Times New Roman" size=3>&nbsp;</FONT></o:p></SPAN></P><P =Ms&#111;normal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-GB style="mso-ansi-: EN-GB"><o:p></o:p></SPAN><SPAN lang=EN-GB style="mso-ansi-: EN-GB"><FONT size=3><FONT face="Times New Roman">….<o:p></o:p></FONT></FONT></SPAN></P><P =Ms&#111;normal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-GB style="mso-ansi-: EN-GB"><o:p><FONT face="Times New Roman" size=3>&nbsp;</FONT></o:p></SPAN><SPAN lang=EN-GB style="mso-ansi-: EN-GB"><o:p><FONT face="Times New Roman" size=3>&nbsp;</FONT></o:p></SPAN></P><P =Ms&#111;normal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-GB style="mso-ansi-: EN-GB"><FONT size=3><FONT face="Times New Roman">I think may be a good improvement create a new function like this:<o:p></o:p></FONT></FONT></SPAN></P><P =Ms&#111;normal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-GB style="mso-ansi-: EN-GB"><o:p><FONT face="Times New Roman" size=3>&nbsp;</FONT></o:p></SPAN></P><P =Ms&#111;normal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-GB style="mso-ansi-: EN-GB"><FONT size=3><FONT face="Times New Roman"><FONT color=#0099ff>ImageManager.Icons.LoadIconData(IconData() As Byte, Command as Long, imageState as XTPImageState)<o:p></o:p></FONT></FONT></FONT></SPAN></P><P =Ms&#111;normal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-GB style="mso-ansi-: EN-GB"><o:p><FONT face="Times New Roman" size=3>&nbsp;</FONT></o:p></SPAN></P><P =Ms&#111;normal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-GB style="mso-ansi-: EN-GB"><FONT size=3><FONT face="Times New Roman">Or load a custom resource directly from a module like the function <FONT color=#0033ff>ImageManager.Icons.LoadBitmapFromResource</FONT>, so every user can import alpha icons in a resource file as custom resources and use them.<o:p></o:p></FONT></FONT></SPAN></P><P =Ms&#111;normal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-GB style="mso-ansi-: EN-GB"><o:p><FONT face="Times New Roman" size=3>&nbsp;</FONT></o:p></SPAN></P><P =Ms&#111;normal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-GB style="mso-ansi-: EN-GB"><FONT size=3><FONT face="Times New Roman">Best regards,<o:p></o:p></FONT></FONT></SPAN></P>]]>
   </description>
   <pubDate>Fri, 13 Jul 2007 06:27:19 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=7582&amp;PID=24449&amp;title=imagemanager-icons-addicon-dont-work-correctly#24449</guid>
  </item> 
  <item>
   <title><![CDATA[ImageManager.Icons.AddIcon don&#039;t work correctly : Hi,  Add CommandBars.Options.UseFadedIcons...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=7582&amp;PID=24447&amp;title=imagemanager-icons-addicon-dont-work-correctly#24447</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 7582<br /><strong>Posted:</strong> 13 July 2007 at 5:46am<br /><br />Hi,<DIV>&nbsp;</DIV><DIV>Add CommandBars.Options.UseFadedIcons = False<BR></DIV>]]>
   </description>
   <pubDate>Fri, 13 Jul 2007 05:46:34 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=7582&amp;PID=24447&amp;title=imagemanager-icons-addicon-dont-work-correctly#24447</guid>
  </item> 
  <item>
   <title><![CDATA[ImageManager.Icons.AddIcon don&#039;t work correctly :  uploads/20070712_110330_Test.zip  Hi,  This...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=7582&amp;PID=24431&amp;title=imagemanager-icons-addicon-dont-work-correctly#24431</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3138">dimdar</a><br /><strong>Subject:</strong> 7582<br /><strong>Posted:</strong> 12 July 2007 at 11:09am<br /><br /><a href="https://forum.codejock.com/uploads/20070712_110330_Test.zip" target="_blank"><DIV>uploads/20070712_110330_Test.zip</A></DIV><DIV>&nbsp;</DIV><DIV>Hi,</DIV><DIV>&nbsp;</DIV><P =Ms&#111;normal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN style="FONT-SIZE: 9pt; COLOR: black; FONT-FAMILY: Verdana; mso-ansi-: EN">This is my test application. ddIcon and ddIcons are GDI+ support class for draw icons with alpha support. I don't understand why it work with xtpImageHot (and other)&nbsp;but not with xtpImageNormal.</P><DIV></DIV><DIV></DIV><DIV>&nbsp;</DIV><DIV>Thanks' you<img src="https://forum.codejock.com/smileys/smiley10.gif" border="0"></DIV></SPAN>]]>
   </description>
   <pubDate>Thu, 12 Jul 2007 11:09:43 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=7582&amp;PID=24431&amp;title=imagemanager-icons-addicon-dont-work-correctly#24431</guid>
  </item> 
  <item>
   <title><![CDATA[ImageManager.Icons.AddIcon don&#039;t work correctly : Hello, Please attach form with...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=7582&amp;PID=24427&amp;title=imagemanager-icons-addicon-dont-work-correctly#24427</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 7582<br /><strong>Posted:</strong> 12 July 2007 at 8:17am<br /><br /><DIV>Hello,</DIV><DIV>Please attach form with PicNormal and PicHot.&nbsp; Need to test it.</DIV>]]>
   </description>
   <pubDate>Thu, 12 Jul 2007 08:17:53 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=7582&amp;PID=24427&amp;title=imagemanager-icons-addicon-dont-work-correctly#24427</guid>
  </item> 
  <item>
   <title><![CDATA[ImageManager.Icons.AddIcon don&#039;t work correctly :   dimdar wrote:  Hi,  Sorry...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=7582&amp;PID=24421&amp;title=imagemanager-icons-addicon-dont-work-correctly#24421</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3138">dimdar</a><br /><strong>Subject:</strong> 7582<br /><strong>Posted:</strong> 12 July 2007 at 4:33am<br /><br /><table width="99%"><tr><td class="BBquote"><img src="forum_images/quote_box.png" title="Originally posted by dimdar" alt="Originally posted by dimdar" style="vertical-align: text-bottom;" /> <strong>dimdar wrote:</strong><br /><br /><SPAN lang=EN style="FONT-SIZE: 9pt; COLOR: black; FONT-FAMILY: Verdana; mso-ansi-: EN"> <DIV>Hi,</DIV><DIV>&nbsp;</DIV><DIV>Sorry but I don't understand. I don’t want load icon at design-time but at run-time <img src="https://forum.codejock.com/smileys/smiley2.gif" border="0">.</DIV><DIV>&nbsp;</DIV><DIV>PicNormal contain an icon because if I write:<?:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /><o:p></o:p></SPAN></DIV><P style="MARGIN: 0cm 0cm 0pt" ="Ms&#111;normal"><SPAN lang=EN style="FONT-SIZE: 9pt; COLOR: black; FONT-FAMILY: Verdana; mso-ansi-: EN"><o:p>&nbsp;</o:p></SPAN></P><P style="MARGIN: 0cm 0cm 0pt" ="Ms&#111;normal"><SPAN lang=EN-GB style="FONT-SIZE: 9pt; COLOR: black; FONT-FAMILY: Verdana; mso-ansi-: EN-GB">With ImageManager1.Icons<BR>&nbsp;&nbsp;&nbsp; .AddIcon PicHot.Picture.handle, ID_FILE_NEW, xtpImageNormal<BR>&nbsp;&nbsp;&nbsp; .AddIcon PicNormal.Picture.handle, ID_FILE_NEW, xtpImageHot<o:p></o:p></SPAN></P><P style="MARGIN: 0cm 0cm 0pt" ="Ms&#111;normal"><SPAN lang=EN-GB style="FONT-SIZE: 9pt; COLOR: black; FONT-FAMILY: Verdana; mso-ansi-: EN-GB">End With<o:p></o:p></SPAN></P><P style="MARGIN: 0cm 0cm 0pt" ="Ms&#111;normal"><SPAN lang=EN-GB style="mso-ansi-: EN-GB"><o:p><FONT face="Times New Roman" size=3>&nbsp;</FONT></o:p></SPAN></P><P style="MARGIN: 0cm 0cm 0pt" ="Ms&#111;normal"><SPAN lang=EN-GB style="mso-ansi-: EN-GB"><FONT size=3><FONT face="Times New Roman">Otherwise:<o:p></o:p></FONT></FONT></SPAN></P><P style="MARGIN: 0cm 0cm 0pt" ="Ms&#111;normal"><SPAN lang=EN-GB style="mso-ansi-: EN-GB"><o:p><FONT face="Times New Roman" size=3>&nbsp;</FONT></o:p></SPAN></P><P style="MARGIN: 0cm 0cm 0pt" ="Ms&#111;normal"><SPAN lang=EN-GB style="FONT-SIZE: 9pt; COLOR: black; FONT-FAMILY: Verdana; mso-ansi-: EN-GB">With ImageManager1.Icons<BR>&nbsp;&nbsp;&nbsp; .AddIcon PicNormal.Picture.handle, ID_FILE_NEW, xtpImageNormal<BR>&nbsp;&nbsp;&nbsp; .AddIcon PicHot.Picture.handle, ID_FILE_NEW, xtpImageHot<o:p></o:p></SPAN></P><P style="MARGIN: 0cm 0cm 0pt" ="Ms&#111;normal"><SPAN lang=EN-GB style="FONT-SIZE: 9pt; COLOR: black; FONT-FAMILY: Verdana; mso-ansi-: EN-GB">End With<o:p></o:p></SPAN></P><P style="MARGIN: 0cm 0cm 0pt" ="Ms&#111;normal"><SPAN lang=EN-GB style="mso-ansi-: EN-GB"><o:p><FONT face="Times New Roman" size=3>&nbsp;</FONT></o:p></SPAN></P><P style="MARGIN: 0cm 0cm 0pt" ="Ms&#111;normal"><SPAN lang=EN-GB style="mso-ansi-: EN-GB"><FONT face="Times New Roman" size=3>The </FONT></SPAN><SPAN lang=EN-GB style="FONT-SIZE: 9pt; COLOR: black; FONT-FAMILY: Verdana; mso-ansi-: EN-GB">xtpImageNormal is always empty but the xtpImageHot is displayed correctly when I move mouse on it. I thing this is a bug <img src="https://forum.codejock.com/smileys/smiley11.gif" border="0">.</SPAN></P></td></tr></table> <DIV>&nbsp;</DIV><DIV><P =Ms&#111;normal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-GB style="mso-ansi-: EN-GB"><FONT size=3><FONT face="Times New Roman">Hi,<?:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /><o:p></o:p></FONT></FONT></SPAN></P><P =Ms&#111;normal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-GB style="mso-ansi-: EN-GB"><o:p><FONT face="Times New Roman" size=3>&nbsp;</FONT></o:p></SPAN></P><P =Ms&#111;normal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-GB style="mso-ansi-: EN-GB"><FONT size=3><FONT face="Times New Roman">While waiting for correction bug I have found a work around: I draw my icon on ImageManagerIcon Handle <img src="https://forum.codejock.com/smileys/smiley4.gif" border="0">&nbsp;(ImageManager1.Icons.GetImage(ID_FILE_NEW, 32).Handle). But now<SPAN style="mso-spacerun: yes">&nbsp; </SPAN>I have a question: If I would like draw on xtpImageHot handle? <img src="https://forum.codejock.com/smileys/smiley5.gif" border="0">&nbsp;I think that Handle property need a state arguments for retrieve image handle for each state,&nbsp;someone have a workaround for it? <img src="https://forum.codejock.com/smileys/smiley19.gif" border="0"><o:p></o:p></FONT></FONT></SPAN></P><P =Ms&#111;normal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-GB style="mso-ansi-: EN-GB"><o:p><FONT face="Times New Roman" size=3>&nbsp;</FONT></o:p></SPAN></P><P =Ms&#111;normal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-GB style="mso-ansi-: EN-GB"><FONT size=3><FONT face="Times New Roman">Thanks’</FONT></FONT></SPAN></P></DIV>]]>
   </description>
   <pubDate>Thu, 12 Jul 2007 04:33:03 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=7582&amp;PID=24421&amp;title=imagemanager-icons-addicon-dont-work-correctly#24421</guid>
  </item> 
  <item>
   <title><![CDATA[ImageManager.Icons.AddIcon don&#039;t work correctly :  Hi,  Sorry but I don&amp;#039;t...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=7582&amp;PID=24419&amp;title=imagemanager-icons-addicon-dont-work-correctly#24419</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3138">dimdar</a><br /><strong>Subject:</strong> 7582<br /><strong>Posted:</strong> 12 July 2007 at 3:50am<br /><br /><SPAN lang=EN style="FONT-SIZE: 9pt; COLOR: black; FONT-FAMILY: Verdana; mso-ansi-: EN"><DIV>Hi,</DIV><DIV>&nbsp;</DIV><DIV>Sorry but I don't understand. I don’t want load icon at design-time but at run-time <img src="https://forum.codejock.com/smileys/smiley2.gif" border="0">.</DIV><DIV>&nbsp;</DIV><DIV>PicNormal contain an icon because if I write:<?:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /><o:p></o:p></SPAN></DIV><P =Ms&#111;normal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN style="FONT-SIZE: 9pt; COLOR: black; FONT-FAMILY: Verdana; mso-ansi-: EN"><o:p>&nbsp;</o:p></SPAN></P><P =Ms&#111;normal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-GB style="FONT-SIZE: 9pt; COLOR: black; FONT-FAMILY: Verdana; mso-ansi-: EN-GB">With ImageManager1.Icons<BR>&nbsp;&nbsp;&nbsp; .AddIcon PicHot.Picture.handle, ID_FILE_NEW, xtpImageNormal<BR>&nbsp;&nbsp;&nbsp; .AddIcon PicNormal.Picture.handle, ID_FILE_NEW, xtpImageHot<o:p></o:p></SPAN></P><P =Ms&#111;normal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-GB style="FONT-SIZE: 9pt; COLOR: black; FONT-FAMILY: Verdana; mso-ansi-: EN-GB">End With<o:p></o:p></SPAN></P><P =Ms&#111;normal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-GB style="mso-ansi-: EN-GB"><o:p><FONT face="Times New Roman" size=3>&nbsp;</FONT></o:p></SPAN></P><P =Ms&#111;normal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-GB style="mso-ansi-: EN-GB"><FONT size=3><FONT face="Times New Roman">Otherwise:<o:p></o:p></FONT></FONT></SPAN></P><P =Ms&#111;normal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-GB style="mso-ansi-: EN-GB"><o:p><FONT face="Times New Roman" size=3>&nbsp;</FONT></o:p></SPAN></P><P =Ms&#111;normal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-GB style="FONT-SIZE: 9pt; COLOR: black; FONT-FAMILY: Verdana; mso-ansi-: EN-GB">With ImageManager1.Icons<BR>&nbsp;&nbsp;&nbsp; .AddIcon PicNormal.Picture.handle, ID_FILE_NEW, xtpImageNormal<BR>&nbsp;&nbsp;&nbsp; .AddIcon PicHot.Picture.handle, ID_FILE_NEW, xtpImageHot<o:p></o:p></SPAN></P><P =Ms&#111;normal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-GB style="FONT-SIZE: 9pt; COLOR: black; FONT-FAMILY: Verdana; mso-ansi-: EN-GB">End With<o:p></o:p></SPAN></P><P =Ms&#111;normal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-GB style="mso-ansi-: EN-GB"><o:p><FONT face="Times New Roman" size=3>&nbsp;</FONT></o:p></SPAN></P><P =Ms&#111;normal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-GB style="mso-ansi-: EN-GB"><FONT face="Times New Roman" size=3>The </FONT></SPAN><SPAN lang=EN-GB style="FONT-SIZE: 9pt; COLOR: black; FONT-FAMILY: Verdana; mso-ansi-: EN-GB">xtpImageNormal is always empty but the xtpImageHot is displayed correctly when I move mouse on it. I thing this is a bug <img src="https://forum.codejock.com/smileys/smiley11.gif" border="0">.</SPAN></P>]]>
   </description>
   <pubDate>Thu, 12 Jul 2007 03:50:18 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=7582&amp;PID=24419&amp;title=imagemanager-icons-addicon-dont-work-correctly#24419</guid>
  </item> 
  <item>
   <title><![CDATA[ImageManager.Icons.AddIcon don&#039;t work correctly : Hello,   May be PicNormal contains...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=7582&amp;PID=24414&amp;title=imagemanager-icons-addicon-dont-work-correctly#24414</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 7582<br /><strong>Posted:</strong> 12 July 2007 at 1:35am<br /><br />Hello, <DIV>&nbsp;</DIV><DIV>May be PicNormal contains bitmaps - not icons ?</DIV><DIV>&nbsp;</DIV><DIV>I recommend add all icons&nbsp;of ImageManager in design time - in properties of imagemanager.</DIV>]]>
   </description>
   <pubDate>Thu, 12 Jul 2007 01:35:26 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=7582&amp;PID=24414&amp;title=imagemanager-icons-addicon-dont-work-correctly#24414</guid>
  </item> 
 </channel>
</rss>