Author Topic: limit to context menu items?  (Read 135 times)

0 Members and 1 Guest are viewing this topic.

sockmonkeyrevolt

  • Jr. Member
  • **
  • Posts: 16
limit to context menu items?
« on: January 12, 2018, 11:35:08 AM »
Does anyone know if there's a limit to the number of actions that can be displayed in the context menu on a shape?

I've written context menu code to allow the user to change the fields that display on the front of the shape so they don't have to open the shape to see copy translations when walking through a design. This was working perfectly until I had to add a new slew of languages.  I now have 64 action rows for choices (these are broken up and nested as flyout children under 5 parents.) the code is executing properly, all user rows and action rows and the If statement from hell that controls the display are there and appear correctly and if I manipulate the selected value on the shape sheet the display is working, however when I right click to open the context menu the last 7 children in the 4th parent don't display and the entire 5th parent and all of it's children is missing from the context menu. 

I'm not seeing anything in the shape sheet that would be making these invisible, so I can only assume right now that there is some kind of limit to the number of items that could be displayed in the context menu, even if they are nested in smaller chunks.

Any Ideas how to get around this? 

wapperdude

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 3025
  • Ideas Visio-lized into solutions
Re: limit to context menu items?
« Reply #1 on: January 12, 2018, 05:30:31 PM »
Care to upload example?

I'm sure there is a limit... my guess is Paul Herbert might know this.
There might be a work-around, but difficult to say without seeing example.

Wapperdude
Visio 2007 Std

Paul Herber

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2523
    • Paul Herber's website
Re: limit to context menu items?
« Reply #2 on: January 13, 2018, 05:08:42 AM »
No, sorry, I'm working on actions for some shapes at the moment, but I've never used fly-out action menus.
I've never come across any limits on this.
Electronic and Electrical engineering, business and software stencils and applications for Visio - http://www.paulherber.co.uk/
Facebook: https://www.facebook.com/Paul-Herbers-Software-Products-422546858110438/

wapperdude

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 3025
  • Ideas Visio-lized into solutions
Re: limit to context menu items?
« Reply #3 on: January 13, 2018, 12:02:27 PM »
@Paul:  oops, didn't catch mispelling of your name, apologies.

@revoltingsockmonkey...sorry, couldn't resist...as an alternative approach, you could have just your main categories on the actions menu, and each would call up appropriate shapedata list.  This would limit the size/ # of entries to the context menu.

Just a thought.

Wapperdude
Visio 2007 Std

metuemre

  • Full Member
  • ***
  • Posts: 113
Re: limit to context menu items?
« Reply #4 on: January 15, 2018, 01:47:57 AM »
This post may give you some ideas,

http://visguy.com/vgforum/index.php?topic=8065