connector and text block

C

CS

Hi,
When re-routing a connector, the control point for the text block of the
connector moves along the connector.
I want the text to automatically rotate 90 deg when the control point is
on a vertical branch of the connector.
Can this be done?
Thanks
 
M

Mark Nelson [MS]

Not easily. You would need to write code to look at the geometry of the
connector, determine what segment the control handle is nearest and then set
the angle of the text block accordingly.
 
C

CS

Thanks Mark.
Can this be done inside the shape sheet ?
Where am I supposed to write the code?
Cris
 
M

Mark Nelson [MS]

No, you would need to write code that works with Visio's automation model.
The code could be in VBA or a separate application. The code would need to
handle events to listen for changes to the connector, retrieve the geometric
path of the connector, analyze the path and find a logical position for the
text block, and finally tell Visio to reposition the text block.

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