Discussion:
Controlling the pencil mode programmatically
(too old to reply)
DC Kelley
2010-04-17 01:08:37 UTC
Permalink
Programmatically, after I drop a new shape on the page, how can I then move
into the "editing mode" tool to use the pencil (to allow moving the control
points on a polygon). And once this is done (and the user has moved all the
points to be where they should) how can I detect that every point has been
edited/moved so that I can then automatically lock the polygon shape into
place and prevent further movement (I understand the lock, just not how to
detect the event)? My general need is to allow the user to refine the
corner points to match an underlaying image before (in the next step) I do
some math on the final position.
David J Parker [MVP Visio]
2010-04-20 11:13:03 UTC
Permalink
Hmm, not as easy as I thought, so I wrote a blog article for you:
http://bvisual.spaces.live.com/blog/cns!3350D61BC93733A9!2193.entry
Post by DC Kelley
Programmatically, after I drop a new shape on the page, how can I then move
into the "editing mode" tool to use the pencil (to allow moving the control
points on a polygon). And once this is done (and the user has moved all the
points to be where they should) how can I detect that every point has been
edited/moved so that I can then automatically lock the polygon shape into
place and prevent further movement (I understand the lock, just not how to
detect the event)? My general need is to allow the user to refine the
corner points to match an underlaying image before (in the next step) I do
some math on the final position.
DC Kelley
2010-04-21 01:13:19 UTC
Permalink
Wow! What an answer. It may challenge my growing Visio skills to lump all
this into my work, but is seems like a workable solution and educational to
me as well.

Having played with the control points, I find myself constantly re-zooming
in on each point to get it just right. The "1st" time I move the last point
it not often to the correct end point, hence I may need to make the decision
to lock the shape and drop this pencil mode with a floating button of some
sort (i know it's modal but that is the best I can think of). Other then
that refinement, off I go.

Loading...