enable/disable context menu entry

D

dani

Hi all

I have modified the visio ui object so I have a custom entry in my
context menu now.

How can I make that entry enabled when the user is right-clicking on a
shape, and disabled when right-clicking on the background?

I have tried to catch the SelectionChanged event, but this event seems
to be fired after the context menu is openend, so if there was no shape
selected, the entry will remain disabled when right-clicking on the shape.

any ideas?

Daniel
 

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