Which events to force 'redraw' from within code?

M

Mac

Situation: a group shape with several connectors glued to it; from a VBA
routine, I 'Shape.Move' the group, in iterations, to a couple of different
positions; in each iteration, I calculate the length of the connectors...in
other words, I want to measure the change in length of the connectors for
each position. However, I found out that the lengths I measure do not change;
even though the group shape moves as planned, Visio updates the connectors
only after my routine exits (as I suppose). Is there any solution to this?
Can I use an event (like RedrawMyDrawing :) ) and send it from within my
code to have Visio update the rest of my drawing accordingly? Or is there any
other way to achieve this behaviour?
 

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