HowTo: show Image in AdxCommandBarButton

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

HowTo: show Image in AdxCommandBarButton
 
Thanasis Boukouvalas




Posts: 40
Joined: 2006-06-17
Hi

I'm trying to display an image in a AdxCommandBarButton.
I've set ImageList and Image properties of AdxCommandBarButton but my image did not appeared beside the button text.
Posted 26 Sep, 2006 08:39:55 Top
Sergey Grischenko


Add-in Express team


Posts: 7228
Joined: 2004-07-05
Hi Thanasis.

You also need to set the Style property of the button to adxMsoButtonIconAndCaption or adxMsoButtonIcon.
Posted 26 Sep, 2006 11:09:22 Top
Thanasis Boukouvalas




Posts: 40
Joined: 2006-06-17
Hi Sergey

Thank you a lot. After that I can see my image.

But now I cannot make trasparent color to work.
I've set transparent color in my ImageList and in AdxCommandBarButton.ImageTransparentColor property too but still see that color around my image.

Is there anything else I have to do?
Posted 27 Sep, 2006 03:08:44 Top
Sergey Grischenko


Add-in Express team


Posts: 7228
Joined: 2004-07-05
Thanasis, you shouldn't change the Transparent color in the ImageList component. It is enough to set it in the ADXCommandBarButton component.
Now you need to remove all images from the ImageList, set the TransparentColor of the image list to the default value and then add the images again.
Posted 27 Sep, 2006 12:04:14 Top