2
votes

I'm using Delphi XE.

I added a TAdvGlowButton on my form and added a TImageList with one transparent PNG image as its source for images. When I view the form in the design mode, the button looks exactly right and the image is transparent. However, when I run the program, the background of the image turns to solid black. If I undestood correctly, this is not a bug of the TAdvGlowButton but TImageList.

Is there a way to fix this without using any 3rd party components?

1
Have you set the image list ColorDepth property to cd32bit? I can see a transparent image for a PNG image, held in an image list, and shown as a toolbar button. So I think TImageList can handle such images. - David Heffernan
Yes, ColorDepth is set to cd32bit and DrawingStyle to dsTransparent. - Ville Salonen

1 Answers

6
votes

I solved this by opening the project settings from Project Manager and checked Application -> Enable runtime themes. What kind of silly option is this? When would anyone want to not enable runtime themes?