So now you know, from the previous post, that there’s no smoke and mirrors here - it’s just general formatting values being calculated in the ShapeSheet. With this knowledge I’m now going to move on and look at what happens in the ShapeSheet, when you start clicking things in the UI.
Having covered how to use the new Visio 2013 themes in the previous post, I’m now going to consider what’s happening from a shape developers perspective.
In this post, I’ll try and uncover how themes are structured and how they actually get surfaced in individual shapes and in the next post, I’m going to have a look at precisely what happens in the ShapeSheet when you select theme related controls in the UI.
There’s a new range of video-based training courses for Visio developers, available via the Office Dev Center. The course is divided into nine modules, which should take the participant from Level 100 to 300 in a day or two.
Many languages include an IsNum / IsNumeric function to check an incoming string value, however this isn’t present in Visio’s ShapeSheet function set. A recent project required this kind of check and I thought I’d jot down one way of creating a similar function in the ShapeSheet.
The wireframing template in Visio has a treeview control to that allows you to add and remove items, and set their respective indent levels. By default you can only adjust a single item at a time and even if you create a multiple selection, only the primary item is effected. A forum question asked how you could make a single change to multiple items and I thought I would write a quick bit of code to show how you might go about it.
There was a question on the Visio forum recently on how to modify a built-in shape and I thought I'd jot down a quick walkthrough of how you might approach the problem. In this instance I’m going to change the way the line weight scales, but the principle of how you modify and create your own master will be the same in most cases.