9
votes

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

2

2 Answers

12
votes
  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?

0
votes

Very late answer, but maybe it helps someone.

I had the same problem, and Mohammed's suggestion still didn't fix it. It turns out you also have to set TImageList.ColorDepth to cd32Bit.

By default it's set to cdDeviceDependent.

Object Inspector