<?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 : 32BPP Image Lists in XTPButton</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Controls : 32BPP Image Lists in XTPButton]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Wed, 13 May 2026 05:12:06 +0000</pubDate>
  <lastBuildDate>Thu, 08 Oct 2009 04:04:44 +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=14331</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[32BPP Image Lists in XTPButton : Hello,  I have the same problem...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=14331&amp;PID=53689&amp;title=32bpp-image-lists-in-xtpbutton#53689</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=1194">Vero</a><br /><strong>Subject:</strong> 14331<br /><strong>Posted:</strong> 08 October 2009 at 4:04am<br /><br />Hello,<DIV>&nbsp;</DIV><DIV>I have the same problem whith SetBitmap in a CXTButton.&nbsp; With next source:</DIV><DIV>&nbsp;</DIV><FONT size=2><P>m_buttonSave.SetBitmap(CSize(32,32), IDB_SAVE);</P><DIV></DIV><P>I have the disabled button in black because the bitmap is 32bpp.</P><DIV></DIV><DIV></DIV>In previous versions (v9.81) this works fine! Please, can you help me?</FONT>]]>
   </description>
   <pubDate>Thu, 08 Oct 2009 04:04:44 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=14331&amp;PID=53689&amp;title=32bpp-image-lists-in-xtpbutton#53689</guid>
  </item> 
  <item>
   <title><![CDATA[32BPP Image Lists in XTPButton : Hi,  Yes, load images from bitmap...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=14331&amp;PID=49174&amp;title=32bpp-image-lists-in-xtpbutton#49174</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 14331<br /><strong>Posted:</strong> 20 May 2009 at 2:16am<br /><br />Hi,<DIV>&nbsp;</DIV><DIV>Yes, load images from bitmap or icon directly - standard ImageList support 32bit icons from WindowsXP only.</DIV>]]>
   </description>
   <pubDate>Wed, 20 May 2009 02:16:23 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=14331&amp;PID=49174&amp;title=32bpp-image-lists-in-xtpbutton#49174</guid>
  </item> 
  <item>
   <title><![CDATA[32BPP Image Lists in XTPButton : I think I may have resolved this...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=14331&amp;PID=49139&amp;title=32bpp-image-lists-in-xtpbutton#49139</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=886">AndyS</a><br /><strong>Subject:</strong> 14331<br /><strong>Posted:</strong> 19 May 2009 at 9:10am<br /><br />I think I may have resolved this myself. The problem appears to be in the way CXTPImageManagerIconHandle treats the automatic construction of the disabled icons. The assumption of alpha capability within the CXTPImageManagerIconHandle appears to be driven by whether the icon handle was&nbsp;initialised from an HICON or from an HBITMAP. I guess that's a throwback to before ImageList icons handled alpha. <DIV>&nbsp;</DIV><DIV>The fix for me is to always use set the icon from a bitmap but I'd still like to use image strips. For now I've knocked up a support method which pulls a region of the strip bitmap out and uses that to set the bitmap on the button. This keeps my icons in easy to handle strips and avoids image lists entirely. </DIV><DIV>&nbsp;</DIV><DIV>If I've got this wrong please let me know, or if there's some support methods for single bitmap extraction from toolbar strips already in codejock then that would be good to.</DIV>]]>
   </description>
   <pubDate>Tue, 19 May 2009 09:10:42 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=14331&amp;PID=49139&amp;title=32bpp-image-lists-in-xtpbutton#49139</guid>
  </item> 
  <item>
   <title><![CDATA[32BPP Image Lists in XTPButton : The following works for getting...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=14331&amp;PID=49137&amp;title=32bpp-image-lists-in-xtpbutton#49137</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=886">AndyS</a><br /><strong>Subject:</strong> 14331<br /><strong>Posted:</strong> 19 May 2009 at 7:21am<br /><br /><P>The following works for getting a strip of four alpha icons onto my CXTPButtons....</P><DIV><FONT size=2><P><FONT face="Courier New, Courier, mono">m_bmpIcons.LoadBitmap(IDB_STRIP_XYZ);</FONT></P><P><FONT face="Courier New, Courier, mono">m_imageList.Create(16, 16, ILC_COLOR32, 4, 1);</FONT></P><P><FONT face="Courier New, Courier, mono">m_imageList.Add(&amp;m_bmpIcons, RGB(0,0,0));</P><DIV></DIV>...<DIV></DIV><DIV>m_cBtnA.SetIcon(CSize(16,16), m_imageList.ExtractIcon(0)</DIV><DIV><DIV><DIV></DIV>m_cBtnB.SetIcon(CSize(16,16), m_imageList.ExtractIcon(1)</DIV><DIV><DIV><DIV></DIV>m_cBtnC.SetIcon(CSize(16,16), m_imageList.ExtractIcon(2)<DIV><DIV></DIV>m_cBtnD.SetIcon(CSize(16,16), m_imageList.ExtractIcon(3)</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV><DIV>The problem is that when the button control&nbsp;is disabled the transparent parts render as black. I see the button sample uses discrete bitmaps for each button and that works fine here too but I'd prefer to use an image strip rather than tens of seperate bitmap resources. Can this be done?</DIV><DIV>&nbsp;</DIV><DIV>Thanks</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV></DIV></DIV></FONT></FONT></DIV></DIV>]]>
   </description>
   <pubDate>Tue, 19 May 2009 07:21:36 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=14331&amp;PID=49137&amp;title=32bpp-image-lists-in-xtpbutton#49137</guid>
  </item> 
 </channel>
</rss>