Event when selecting shape in a group

V

viorel farcas

Hi guys

I have a question regarding the selection_changed event defined on a window.
The code fails to run when selecting a shape that is part of a group. As if
the event cannot see that i made a selection if that selected shape is in a
group.
How can i overcome this?

Thanks
 
A

Al Edlund

as I remember, when you do the select of an object that is a group the
components aren't available until you do some further manipulation
(basically a group is a wrapper around the individual elements). You
probably need to first a.) recognize it is a group object, and b.) then
recurse through the group to the object you want to work with.
al
 
M

Mark Nelson [MS]

You should get the SelectionChanged event regardless of the selection being
related to a group or not. However, to retrieve the selected shape, you
must set the IterationMode property on the Selection. This tells Visio how
you want the selection information to be exposed. See the help topic for
more details.
 
V

Viorel Farcas

Thanks for the response. It really helped.


Mark Nelson said:
You should get the SelectionChanged event regardless of the selection being
related to a group or not. However, to retrieve the selected shape, you
must set the IterationMode property on the Selection. This tells Visio how
you want the selection information to be exposed. See the help topic for
more details.

--
Mark Nelson
Microsoft Corporation

This posting is provided "AS IS" with no warranties, and confers no rights.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top