Hierarchical context menu for a shape

B

bnk

Hello,

Is it possible in Visio to create hierarchical context menu
that depends on the shape selected?
In other words, is it possible to arrange the "Actions" ShapeSheet
rows into a sub-menus?
Can the drawing context menu be used for this perpose (Is it ok to
update it each time the selection changes)?

Regards,
Nikolay.
 
M

Mark Nelson [MS]

There was a post a few weeks ago about this. The Actions section of the
Shapesheet does not provide this, but the developer was able to implement
this through code working with the CommandBars automation model.
 
B

bnk

Mark Nelson said:
There was a post a few weeks ago about this. The Actions section of the
Shapesheet does not provide this, but the developer was able to implement
this through code working with the CommandBars automation model.

Thank you for response.
Unfortunately CommandBars automation model does not care which shape
is currently selected. The menu is just the same for all shapes.
The problem is how to create hierarchical context menu that depends on
current selection (i.e. the menu must be different for different
shapes).

Regards,
Nikolay.
 
C

Chris Roth

Nikolay,

We have created a number of solutions that use the Visio 2003 Drawing
Control. That is, Visio is a component inside of our own form/application.
Visio 2003 allows the capture of mouse events/locations, so we were able to
easily build our own context (right-click) menus. By examining the shape
before creating the menu, you can create appropriate menus using custom
code.

--

Hope this helps,

Chris Roth
Visio MVP
visioguy @ extremely warm mail.com



bnk said:
"Mark Nelson [MS]" <[email protected]> wrote in message
There was a post a few weeks ago about this. The Actions section of the
Shapesheet does not provide this, but the developer was able to implement
this through code working with the CommandBars automation model.

Thank you for response.
Unfortunately CommandBars automation model does not care which shape
is currently selected. The menu is just the same for all shapes.
The problem is how to create hierarchical context menu that depends on
current selection (i.e. the menu must be different for different
shapes).

Regards,
Nikolay.
 

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