Images not appearing on commandbar buttons

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

Images not appearing on commandbar buttons
 
Scott Johnston




Posts: 31
Joined: 2006-07-18
I'm having trouble getting any image to appear on my Excel addin commandbar buttons. I'm using a 16x16 256 colour (32bit) png image saved with a transparency. I've also tried other formats with no luck. All examples I have seen seem to get an image appearing. I'm using an image list set to 32bit and setting the button image on the control.

Any suggestions?

Scott
Posted 18 Jul, 2006 05:04:14 Top
Sergey Grischenko


Add-in Express team


Posts: 7225
Joined: 2004-07-05
Hi Scott,

Please fill the background with a color (e.g. Fuchsia) and set this color in the ImageTransparentColor property of your buttons. I think it should help.
Posted 18 Jul, 2006 07:55:47 Top
Scott Johnston




Posts: 31
Joined: 2006-07-18
I've got an image now but it's a mess.

I used a megenta (255,0,255) back ground. I think it's something to do with the colour depth and the palette or something...

:(
Posted 18 Jul, 2006 09:06:22 Top
Scott Johnston




Posts: 31
Joined: 2006-07-18
I've fixed it. It's all to do with the colour depth and transparency. And I was setting the image list transparency to magenta too, which is wrong.

Scott
Posted 18 Jul, 2006 09:27:31 Top
Sergey Grischenko


Add-in Express team


Posts: 7225
Joined: 2004-07-05
Try to remove all images from the ImageList and add them again. And don't change any properties of the Imagelist component. Just leave them by default.
Posted 18 Jul, 2006 09:28:29 Top
Sergey Grischenko


Add-in Express team


Posts: 7225
Joined: 2004-07-05
Ok. Good luck.
Posted 18 Jul, 2006 09:29:53 Top