Undo Manager

R

Roger

Hi all

Is there anyway of accessing units on the undo and redo stacks? I'm using
the Visio Drawing Control and I'd like to be able to emulate the undo and
redo drop down lists in the standard Visio toolbar which contain descriptions
of all the units in the undo and redo stacks. I'd also like to be able to
disable the undo and redo options in my user interface when the undo/redo
stacks are empty.

This isn't essential as the undo and redo methods don't cause an error when
there's nothing on their respective stack. But it would be a nice option to
have available in the Visio object model.

Many thanks
Roger Billsdon
 
M

Mark Nelson [MS]

You can create and manage undo units that you create with the IVisioUndoUnit
interface, BeginUndoScope and EndUndoScope. These undo units sit in the
same undo stack as Visio's. However, you are not able to control Visio's
own undo units other than to completely flush the Undo stack.


--
Mark Nelson
Office Graphics - Visio
Microsoft Corporation

This posting is provided "AS IS" with no warranties, and confers no rights.
 
R

Roger

Mark

Many thanks, that's as I'd understood the situation. Maybe this could be
added to the list of potential future enhancements?

Best regards
Roger Billsdon
 

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