Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Why are my transparent images used in a Delphi 2009 Ribbon not transparent on runtime?

I just played around with the new Delphi 2009 ribbon, added a few pages, groups and actionclients (large buttons) to it. I created some transparent 32x32px PNGs in Photoshop and put them into a TImageList (set to cd32bit). I added this list to the Actionmanager's Images property, to show them on the buttons. At designtime the icons in the ribbon look just fine, but when compiling and starting the app they have a black background. Any idea what causes this and how I can fix this? I do not want to create the images with the ribbon color as background, because I cannot switch to another colorset of the ribbon then.

Thanks in advance Marc

like image 229
user133370 Avatar asked Feb 04 '23 10:02

user133370


1 Answers

  1. Ensure that Application theme is enabled by: Project > Options > Application > Enable runtime theme.

  2. Have you tried to set the DrawingStyle property of Imagelist to dsTransparent?

like image 51
Mohammed Nasman Avatar answered Apr 27 '23 07:04

Mohammed Nasman