Nested Context Menus for Shapes

Started by AndyMacrae, January 13, 2016, 08:31:05 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

AndyMacrae

I created a visio that contains an object for each workstation in the test labs I manage.  I have a number of custom context (right click) menu items for these workstation objects.

What I don't seem to be able to do is have nested context menus for these shapes.  For instance, I want to right click on the workstation shape, and have a menu option that says "Lab Menu".  From there I want "Configure Environment" and from that option I want a submenu that has options like "DEV", "SYS", "PAT".  I can get the Lab Menu -> Configure Environment menu items no problem, but for some reason I can't seem to figure out how to get the next submenu to render.  Is it acutally possible?  When I try to make another Begin Group/FlyoutChild it just puts it onto the main context menu for the shape instead of creating a submenu.  I'm likely missing something obvious.

I can go into more detail with the Shapesheet data if necesary.

Any help any one can provide gets my eternal gratitude and a cookie.

JuneTheSecond

You are much appreciated, if you post your Visio document that has your problem.
Best Regards,

Junichi Yoda
http://june.minibird.jp/


AndyMacrae

Quote from: JohnGoldsmith on January 16, 2016, 10:55:01 PM
Hello Andy,


Does this help?


http://visualsignals.typepad.co.uk/vislog/2009/09/visio-2010-custom-context-menus.html


Best regards,


John

That is the point I have gotten to so far.  I want to go one more step where, using the examples in that article, I would have another flyout menu that branches off "Rotate Left".

vojo

this is what I did:
- have formulas in the hide/unhide cells of props.
- Set flag based on context (1st level menu, 2nd level menu, etc)
- hide/unhide formulas use flag....if a match, unhide...if not hide

JohnGoldsmith

#5
Oh, ok I think I understand what you're after, but no, as far as I'm aware FlyoutChild only goes one level deep.

A workaround might be to use BeginGroup to create 'headers' or [a good idea via David Parker] ReadOnly.

Have a look at the attached image as an example.

Best regards

John

PS I like your dynamic Shape Data Vojo.
John Goldsmith - Visio MVP
http://visualsignals.typepad.co.uk/

AndyMacrae

Thank you very much for the help.  I think the Headers work around will suffice.  Mostly I'm just happy to know it can't be done so I can accept it and move on.

JohnGoldsmith

Great.  Thanks for coming back Andy.
John Goldsmith - Visio MVP
http://visualsignals.typepad.co.uk/