Author Topic: Shape context menu with multiple shape selection  (Read 4865 times)

0 Members and 1 Guest are viewing this topic.

AndyW

  • Sr. Member
  • ****
  • Posts: 326
    • PC Mimic Diagram
Shape context menu with multiple shape selection
« on: September 26, 2012, 04:25:27 AM »
As I understand it, after selecting multiple shapes, one of these is the primary shape. Using the right mouse button, the context menu can shown based on this primary shape. This works fine apart from overlapping shapes, see attached example diagram.

If I select an area encompassing the shape labelled 'B' (and the shapes inside), right click on the border of B, gives a context menu for the primary shape.

However, right click on one of the shapes within 'B', this deselects the shapes and selects the outer shape 'A', giving its context menu. This is not what I expected or require!

Anyone have any ideas why this should behave differently.
Live life with an open mind

Paul Herber

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 3286
    • Paul Herber's website
Re: Shape context menu with multiple shape selection
« Reply #1 on: September 26, 2012, 05:01:06 AM »
Hi Andy, when you right-click on one of the shapes within B are you sure your mouse cursor is really over a geometry part of the shape? If you are slightly off then this is the effect you will see, especially with shapes like these that have no fill, you have to be quite accurate where you place the mouse.
Electronic and Electrical engineering, business and software stencils and applications for Visio -

https://www.paulherber.co.uk/

AndyW

  • Sr. Member
  • ****
  • Posts: 326
    • PC Mimic Diagram
Re: Shape context menu with multiple shape selection
« Reply #2 on: September 26, 2012, 05:54:09 AM »
Ah!

My shapes consist of sub shapes and there is in fact no geometry in the top level shapes! My top level shape is really a holder for properties, all the geometry is in my sub shapes.

I stuck a bit of geometry in the top level shape, then the context menu behaves as expected.

Still not sure why it behaves differently if I only select the 2 inner shapes. In that case it doesn't change the selection. As soon as I include the outer shape B in the selection it does.
Live life with an open mind