Why my menu disappears after creating a document?

A

anueblav

I am new to visio SDK and just created a new menu firing an even. all works
nice until I create a document. then the menu disapears. What am I missing
here?

Thanks
Fabio
 
P

Paul Herber

I am new to visio SDK and just created a new menu firing an even. all works
nice until I create a document. then the menu disapears. What am I missing
here?

How are you creating the menu? It sounds like you have created the
menu just for the current document, so, either
a. create your menu for the application level
or b. add your menu to the new document after it is created.
 
A

anueblav

Just to get started, I am using the sample code that ships with the sdk
(Command Bar Creation) calling it from connect. Would that be an app menu?
once I open a doc, the menu goes away. What I am missing here?

Thx
 
A

anueblav

BTW, i do create per document and in fact if I put a modal dlg (messagebox)
after creating it, I can it right after the onDocument event is called.
However, as soon as I dismiss the messagebox, it disappears. this is driving
me crazy! What is going on? either it created or it didnt. why the menu
'exists' but is not visible?
 
A

anueblav

Aha, here is the interesting part. it *only* disappears if I create a UML
diagram (which is the one I need). any other diagram works just fine. any
ideas?
 
P

Paul Herber

Ha, I was just about to reply to ask a few questions but your code
would seem to be working. With the UML add-on you have no chance, it
overwrites any attempts to add other menus.
 
P

Paul Herber

Who knows. If it is on purpose then it breaks the guidelines for
creating Visio menus and if not then it is very easy to fix.

Interesting... is that "by design"? it seems odd to me...
 

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