A Connector on a locked layer can be rerouted

A

Andy

I have locked all my layers to prevent the diagram from being changed
by the user. However, if I select a dynamic connector from VBA I am
able to change the conenctor routing. When selected it also shows green
handles, although I have turned off the align handles. For other shapes
this works perfectly.

Any suggestions as to how to prevent the connector routing from being
changed.

Thanks
 
C

Chris Roth [ Visio MVP ]

Um, are you afraid your users will go into VBA and type code to select
connectors?

I don't understand exactly what the problem is. Does your code do a
selection for some reason?

--

Hope this helps,

Chris Roth
Visio MVP
 
A

Andy

lol, no, i'm not worried that the users might do that.

I am using the mouse events when a shape or connector is selected to
popup a userform dialog. I select the shape or connector from VBA so
that on the diagram it is apparent what has been selected. In the case
of shapes, this is fine, nothing can be done to move the shape.
However, for a connector, it can still be rerouted, although the
begin/end points cannot be moved. My aim is to have my diagram running
in a mode that cannot be directly modified by the user, but changes are
handled via automation.
 

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