In Visio 2007, my add-in modifies the standard UI such that some custom menu/toolbar items are added and some standard ones are removed. It does this using the CSVUIObject class, which loads a .vsu file containing the modified UI. It seems that it is "all change" in Visio 2010!
I have already managed to add a custom ribbon (based on the Visio 2010 SDK sample) and from what I've found out so far, it seems that I can modify the standard Visio UI using the same ribbon XML as I do for the custom items.
Firstly, I wanted to remove or disable the Open command from the File menu and I managed to achieve this by adding the following XML to the ribbon XML file.
<commands>
<command idMso="FileOpen" enabled="false"/>
</commands>
Now I want to remove/hide/disable the Recent tab from the File menu but am having no success. From various bits of online documentation it seems that the following XML should work:
<backstage>
<tab idMso="TabInfo" visible="false"/>
</backstage>
However, this is not working. Not only is it not working, it means that my custom ribbon doesn't seem to load at all!
I cannot see any specific errors being generated - it just seems to fail silently. Bear in mind that the code is mainly the SDK sample code, so I'm not overly familiar with what everything does - it's a small miracle that I got the custom ribbon working in the first place.
Am I gong about this the right way? Because I managed to get the File/Open disabled fairly easily, I was hoping that something similar would work OK for the Recent File List. Maybe there is a better way to achieve this.
Thanks in advance,
Chris