Undo Redo automation question

N

NAdir

Hi,
I am implementing undo/redo functionnality in my Visio add-in using undo
units. I want to keep in the undo/redo list only my application actions and
remove any visio default actions (such as fomulas changed, or text edited) is
there a way to filter and remove these commands. My objective is to present a
limited number of undoable commands to the user.

Thanks for your answer
 
M

Mark Nelson [MS]

Check out the BeginUndoScope and EndUndoScope methods on the Application
object. You can use these before and after your application actions to
combine everything into a single entry in the undo list. You also get to
set the string that appears in the undo list.

--
Mark Nelson
Office Graphics - Visio
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