views:

465

answers:

2

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

+9  A: 
  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?

Mohammed Nasman
Thanks! You were right. "Enable runtime theme" had to be checked.Why is this not enabled by default?
It should be enabled by default, but seems you are upgrading from older version which you have to turn it Manually
Mohammed Nasman
+1 Mohammed for a nice quick answer, but one minor suggestion to improve the English: "Insure" should be "Ensure that"
Argalatyr
@sinner, don't you think you should also give Mohammed's answer an up-vote?
Argalatyr
@Argalatyr: I am new here and have not yet earned any reputation points. I need 15 of them to up-vote the answer.How do I get them? Do I need to answer other questions?
@Argalatyr, Thank you for the correction. @sinner, you can have more reputation by getting votes for your questions and answers.
Mohammed Nasman
@sinner: sorry - I forgot that restriction. Happily, it no longer applies to you!
Argalatyr
A: 

Hello,

I have a similar problem in that during design time my Ribbon images are full of color and large. During the runtime, the images are then grayed out (as if they are disabled). However, everything shows enabled. Why is this happing.

Chris
Is it possible that you did not put any code in the onexecute of the action? I experienced that the Delphi 2009 rippons disables the button then and if there are no disabled-pictures then they get that ugly 1-color grayscale icon.