Nasty Png in Tbutton on Windows XP SP3 (XP Mode Windows 7)

I tried my application (dev on Windows 7) in Windows XP mode (SP3). And my Tbutton pictures (and others) related to the TImageList are very terrible (rounded blacks). Do you have an explanation? Or a solution?

enter image description here

Thank you very much, have a nice day!

EDIT:

@Ken The same EXE compiled on Windows XP or Windows 7 with D2009 gives me the same result. There is no transparency in XP Mode SP3 (maybe this is a problem on the virtual machine, but this is strange) and transparency in Windows 7 ...

@Ken With Delphi 2010 the same problem: Test file (source + Exe): http://www.onkeysoft.com/Test.zip

@David: Facebook, , , ... , , ... ( , stackoverflow )

+5
3

:

Windows 7 Pro: Windows XP (SP3) (Win7Pro): !

... Windows XP SP3 VirtualBox: !

, Windows XP, ...

( : http://i.stack.imgur.com/LwCtq.png)

+1

, Enable Runtime Themes "" > "" > "".

DrawingSytle ImageList dsTransparent

0

By default, Windows 7 XP mode emulation runs in 16-bit color mode. Historically, PNG transparency support for Delphi has not been too pleased with color depths other than 32 bits.

Try running the same application on a real XP machine with a display set to 16 bits, and I expect that you will encounter the same problems.

0
source

All Articles