Code to remove properties item in context menu

S

Sam Huang

Hi,
How to remove the properties item in the context menu? What are the
APIs? Any sample code available? Thanks!

P.S. I tried to add post to the related posts but they do not appear,
so I just started a new topic, sorry for any inconvenience.
 
S

Sam Huang

Hi,
How to remove the properties item in the context menu? What are the
APIs? Any sample code available? Thanks!

P.S. I tried to add post to the related posts but they do not appear,
so I just started a new topic, sorry for any inconvenience.

I did it by changing the shape's shapesheet, but after the menu
disappear, i changed the visio file. When Visio closes, it prompts the
dialog 'do you want to save the changed file'. This is not my
intended, I just want to disable the menu item but not changing the
file. Do I have any other choices? Thx!
 
P

Paul Herber

I did it by changing the shape's shapesheet, but after the menu
disappear, i changed the visio file. When Visio closes, it prompts the
dialog 'do you want to save the changed file'. This is not my
intended, I just want to disable the menu item but not changing the
file. Do I have any other choices? Thx!

As you found, this particular menu is in the shapesheet Actions
section. Any change you make to a drawing will set the drawing's
Changed flag. In this case you are making a change to the menu of just
one shape, in Visio the context menu can be set differently per shape.
If you want to save the changes then you have to save the file.
 

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