Selecting Subshape

C

CyberBhai

I have certain shapes which are a combination of an 'Image' and a
'textshape' having shadow. I drop these shapes onto the Visio 2003 Activex
Control from a tree-Control in a VB.Net 2003 application.
My need is to change the color of the 'textshape' which is present as a
part of the combined shape.
With the second click on the combined shape it selects the textshape,
but how to get the details of the textshape and change the color to the
selected color from a dropdown.

Plz. Help

Cyberbhai
 
P

Pinakee

John,
How can I select a subshape programmatically ? I am using Visio 2003
ActiveX and VB.Net 2003.

CyberBhai
 
M

Markus Breugst

Hi CyberBhai,

each shape has a Shapes collection which you can use to iterate through the
subshapes.
For each subshape, try this (it's VBA, but VB.Net has a similar method):

ActiveWindow.Select subShape, visSubSelect


Best regards,
Markus
 
P

Pinakee

Markus,
Can you just go thru this and reply:
"---------------------
I have certain shapes which are a combination of an 'Image' and a
'textshape' having shadow. I drop these shapes onto the Visio 2003 Activex
Control from a tree-Control in a VB.Net 2003 application.
My need is to change the color of the 'textshape' which is present as a
part of the combined shape.
With the second click on the combined shape it selects the textshape,
but how to get the details of the textshape and change the color to the
selected color from a dropdown. --------------"

Plz. Help

Cyberbhai
 
Top