Custom Menus

M

Michael Morse

Hi Everyone,

I'm using VSTO Second Edition and C# to create an Add-In for Visio. All I
want to do is add my own menu and menu items and I can get the rest. What I
have now works and builds a menu open launching Visio however if some chooses
a UML diagram it blows away my custom menu. I assume because when this
document type loads it needs to have a specific menu system over other
document types and therefor removes my menu.
I haven't figured out how to make it permanent or add it back. Also code
samples are in rare supply. Does anyone have some code sample sites. MSDN
lib doesn't cover much.

Thanks!!

-mike
 
M

Mark Nelson [MS]

Does this happen with other built in solutions like Organization Chart? If
not, it is likely a problem with the UML solution not respecting custom UI.

--
Mark Nelson
Office Graphics - Visio
Microsoft Corporation

This posting is provided "AS IS" with no warranties, and confers no rights.
 
M

Michael Morse

I havent seen any other document types do this. If I open multiple
documents, one UML and one flow chart for example; when I switch to the flow
chart I see my menu and when I switch back to UML it shows a different set of
menu items.

Is it better practice to load the custom menu after the document is actually
created / opened or directly wen the application starts. Also it seems there
a various ways to add menu items, is there documentation around when you
would use what and why?

I'm curious as to why Microsoft has not done a better job documenting these
things. And! why doest visio 2007 use the Ribbon?!!

thanks,

-mike
 
P

Paul Herber

Hi Everyone,

I'm using VSTO Second Edition and C# to create an Add-In for Visio. All I
want to do is add my own menu and menu items and I can get the rest. What I
have now works and builds a menu open launching Visio however if some chooses
a UML diagram it blows away my custom menu. I assume because when this
document type loads it needs to have a specific menu system over other
document types and therefor removes my menu.
I haven't figured out how to make it permanent or add it back. Also code
samples are in rare supply. Does anyone have some code sample sites. MSDN
lib doesn't cover much.

The UML addon certainly doesn't like any other add-on changing the
menus.
 
V

Vitaly Vikhnovich

I am having a similar problem. While creating a Visio document based on the
UML Model Diagram template, my custom UI (menu) gets removed as soon as the
UML menu becomes Visible in the main command bar. If then, this document is
closed, my UI will re-appear. I used VS 2005 (VB) to develop a shared add-in.
Please investigate as this is causing a major impact on our clients.

Thanks!

-vitaly
 
P

Paul Herber

On Tue, 1 Apr 2008 13:52:00 -0700, Vitaly Vikhnovich <Vitaly
I am having a similar problem. While creating a Visio document based on the
UML Model Diagram template, my custom UI (menu) gets removed as soon as the
UML menu becomes Visible in the main command bar. If then, this document is
closed, my UI will re-appear. I used VS 2005 (VB) to develop a shared add-in.
Please investigate as this is causing a major impact on our clients.

The UML model addon seems to actively remove other UI modifications.
It appears to monitor changes to the UI and remove anything it doesn't
recognise.
 
V

Vitaly Vikhnovich

Mark you are correct in that this is an issuse with the UML solution not
respecting custom UI. Do you know if has been logged with Microsoft as a bug
or if there is any type of workaround?
 
J

John Marshall, MVP

And! why doest visio 2007 use the Ribbon?!!

A simple matter of economics. It was easier for a small collection of core
apps to agree on the Ribbon functionality rather than have representations
from all apps. The "Too Many Cooks" syndrome. Eventually all the other
Microsoft apps will have a Ribbon with their own added functionality.

John... Visio MVP

Need stencils or ideas? http://visio.mvps.org/3rdparty.htm
Need VBA examples? http://visio.mvps.org/VBA.htm
Visio Wishlist http://visio.mvps.org/wish_list.htm
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top