开发者

Transparent PNG image with TImageList

开发者 https://www.devze.com 2023-02-07 04:28 出处:网络
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 th开发者_如何学Ce design mode, the bu

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 th开发者_如何学Ce 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?


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?

0

精彩评论

暂无评论...
验证码 换一张
取 消