CnPack Forum


 
Subject: ImageList lost transparency in upgrade from Delphi 2007 to XE2
CBelanger
新警察
Rank: 1



UID 67641
Digest Posts 0
Credits 4
Posts 1
点点分 4
Reading Access 10
Registered 2012-8-20
Status Offline
Post at 2012-8-21 06:17  Profile | Blog | P.M. 
ImageList lost transparency in upgrade from Delphi 2007 to XE2

Hello:

BTW, before I start, I really want to thank you for CnPack. I use it a lot and does make programming easier. I especially like the imagelist interface which allows one to search the internet for new icons and directly incorporate those into the imagelist.

Recently upgraded a project from D2007 to XE2. Upgraded CnPack at the same time. Noticed right off that many images used in toolbars and the main menu, were no longer transparent, but instead had black backgrounds, but only at run time. Design time display was correct.

After experimenting around, I found that other imagelists that did not have the "Use XP Style..." checked worked fine, i.e. they displayed properly at design and run time and with transparency.

I was able to Export the imagelist which changed the background from black to white which is better, but there does not seem to be any way of displaying the images with transparency any more. FYI, in the D2007 project, in order to have transparency for this specific imagelist, I needed to check the "Use XP style..." check box.

In the D2007 project before upgrade, the background was fuscia. In any case it is my understanding that transparency is created automatically based on the lower left corner pixel, which is black in XE2, but does not display correctly.

Is there a work around? Are you aware of what appears to be a bug?

Thank you,

Chuck Belanger
Top
 




All times are GMT++8, the time now is 2024-11-21 21:21

    本论坛支付平台由支付宝提供
携手打造安全诚信的交易社区 Powered by Discuz! 5.0.0  © 2001-2006 Comsenz Inc.
Processed in 0.009484 second(s), 8 queries , Gzip enabled

Clear Cookies - Contact Us - CnPack Website - Archiver - WAP