what is the event for grouping shapes?

Started by david, September 10, 2008, 08:00:38 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

david

all i found was ConvertToGroupCanceled or UngroupCanceled which are not what i needed.

i want to do some actions whenever i group shapes.  anyone knows how?

thanks
David

Visio Guy

QueryCancelGroup.

Could also probably check ShapeAdded, but that would be more work.
For articles, tips and free content, see the Visio Guy Website at http://www.visguy.com
Get my Visio Book! Using Microsoft Visio 2010

david

i didn't find that event.

i found only QueryCancelUngroup.

david

the event ShapeAdded really worked. but how can i distinguish between the event of moving a shape from the stencil to the frame and the event of grouping shapes?  they're both included in ShapeAdded.

Paul Herber

There is a QueryCancelGroup (visEvtCodeQueryCancelSelGroup) with value &H038D and
QueryCancelConvertToGroup (visEvtCodeQueryCancelConvertToGroup) with value &H038B

http://msdn.microsoft.com/en-us/library/aa342177.aspx

Electronic and Electrical engineering, business and software stencils for Visio -

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

david

but i searched it in Object Browser in visio and didn't find it.

i checked in google and it's said there that QueryCancelGroup belongs to visio 2007.  i have visio 2003 maybe that is why i can't find it?

Paul Herber

Electronic and Electrical engineering, business and software stencils for Visio -

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

david


david

i don't understand why there's no such event (QueryCancelGroup) in visio 2003.
i really need that event and i can't use Document_ShapeAdded because its parameter is of type Shape and i need to work on Selection (QueryCancelGroup's parameter) and not Shape.

all i need is to do some actions whever i create a group.  there must be a way in visio 2003.

anyone has any suggestion what to do? (except for converting to visio 2007 - this is not an option).