none
Disable ribbon button icon in C++ addin RRS feed

  • Question

  • Hello,

    I have build a C++ addin that runs on word, excel and ppt.

    When the getEnabled event is fired and that i provide false to the method, the text is disabled correclty but not the button icon.

    If I use ImageMSo instead of image in the XML it works without any issue. Is there any special requiment for the icon to be given in the OnLoadImage Method ? 

    I provide a ico 24*24 in 32 bit format.

    I have tried to create a C# addin using the same icon and the button are greyed out correclty.

    Thanks,

    /Eric

    Tuesday, December 17, 2013 1:12 PM

Answers

  • Hello Eric,

    Command Bars buttons accepts *.ico files, but not the Ribbon controls. I would recommend using the *.png file format for your ribbon controls instead. Is this the case? 

    Wednesday, December 18, 2013 12:06 PM

All replies