Images in commandbar

Add-in Express™ Support Service
That's what is more important than anything else

Images in commandbar
 
Lars Hjort


Guest


Hi,

Do icons in commandbar buttons have to be in a specific format?

The problem is that the area that should be transparent in the icon is blue in the commandbar when the add-in is run. I tried to change the background from transparent to a colour but without result?Â?Ð??


Thanks
Lars
Posted 27 Jun, 2005 12:05:43 Top
Sergey Grischenko


Add-in Express team


Posts: 7233
Joined: 2004-07-05
Hi Lars.

You can use any images (16x16) for your command bar buttons in ADX.
However you shouldn't set the TransparentColor property of the ImageList component. Just leave it as Transparent by default. If you have already changed this property you are to set it to Transparent and reload all images again.

Then choose an image you like in the Image property of the ADXCommandBarButton component and set the TransparentColor property to the appropriate color.
Posted 28 Jun, 2005 08:36:42 Top
Lars Hjort


Guest


Strange... I use a png image like this:

User added an image


But the result is still:

User added an image

/Lars
Posted 28 Jun, 2005 12:00:32 Top
Sergey Grischenko


Add-in Express team


Posts: 7233
Joined: 2004-07-05
Lars,
I noticed that your png image has an empty background color.
You need to fill the background fon with a color and set this color in the ImageTransparentColor property of the ADXCommandBarButton component.
I opened your image in Photoshop and set the background color to
White. Then I set the background color to White in the ADXCommandBarButton component. Now it looks good.
Posted 28 Jun, 2005 13:36:50 Top