Ville Salonen
Ville Salonen

Reputation: 2654

Transparent PNG image with TImageList

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?

Upvotes: 2

Views: 3291

Answers (1)

Ville Salonen
Ville Salonen

Reputation: 2654

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?

Upvotes: 7

Related Questions