News:

BB code in posts seems to be working again!
I haven't turned on every single tag, so please let me know if there are any that are used/needed but not activated.

Main Menu

Shape context menu with multiple shape selection

Started by AndyW, September 26, 2012, 09:25:27 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

AndyW

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

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 for Visio -

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

AndyW

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

Browser ID: smf (possibly_robot)
Templates: 4: index (default), Display (default), GenericControls (default), GenericControls (default).
Sub templates: 6: init, html_above, body_above, main, body_below, html_below.
Language files: 4: index+Modifications.english (default), Post.english (default), Editor.english (default), Drafts.english (default).
Style sheets: 4: index.css, attachments.css, jquery.sceditor.css, responsive.css.
Hooks called: 175 (show)
Files included: 33 - 1308KB. (show)
Memory used: 1045KB.
Tokens: post-login.
Cache hits: 14: 0.00318s for 26,729 bytes (show)
Cache misses: 4: (show)
Queries used: 18.

[Show Queries]