Hi!
I am developing an Excel COM add-in using C#.
What do I have?
The problem is I can't make buttons with an image of custom size - office automatically scales them to the button's size. So, in Excel 2003 I can change the button’s size, but its face image will be always 16x16 pixels. In Excel 2007 by Ribbon specification I can use two standard buttons (and button image) sizes 16x16 and 32x32 pixels for “normal” and ”large” button size modes.
What do I want to do?
I want to make a single toolbar in MS Excel. Images of buttons must have a custom size. And if I specify “button_face.png” file as an image for some button then this very button must be scaled to the image’s size, not vice versa. Thus if “button_face.png” image have 64x64 resolution then the button’s size will be 64x64 too. Actually, I just want to find a way to make buttons with a custom(!) size. As you can see I already faced a know size limitations and now trying to find a workaround.
What do I want from you?
I need your help. Have you any suggestions about ways to circumvent these limitations? I found http://www.toolbartoggle.com/ made to Excel 2007 something like http://img13.imageshack.us/img13/8349/toolbartoggle.png. I’m wondering how they managed this. Their example is showing me there must be a way to solve my problem, no matter how “hooked” this way is.
Sorry for my English and thanks for any help.
Vadim P.