Unmanaged Visio

05 April 2011

Using the same set of button images with transparency in Visio 2003, 2007 and 2010

scan 001It comes without saying that ribbon interface is cool, times easier to use (especially for developers =), and supports many new controls and neat features.

However, if you write a Visio add-in that targets multiple Visio versions at the same time, and have some custom buttons with images (with transparency), you might run into trouble with that new Visio 2010 Ribbon user interface needs different “flavor” of images compared to Visio 2003 and 2007. So you’ll have to to either create two separate sets of images (one set for pre-ribbon version of Visio, the second set for the ribbon one), or to “dance around a little” and make both versions consume the same set of images. The article focuses on the second approach I ended up with.

image

image

Download sample project (C++)

Download sample project (C#)

Read more »

Labels: , , , ,