Posted 15 years ago by bnott
Avatar
What is the best way to listen for when the undo\redo stack's change, so i can update my toolbar buttons appropriately. I was hoping to see an event on the UndoRedo object. It seems like updating the toolbar on every TextChanged event is excessive.

Comments (2)

Posted 15 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar
Good point... Would something like an UndoRedoStateChanged event on Document work?


Actipro Software Support

Posted 15 years ago by bnott
Avatar
Seems like it would work. For what its worth, the first place i would actually look (if I was searching for the feature as a new user) would be Document.UndoRedo.StateChanged, or Document.UndoRedo.UndoStack.CountChanged.
The latest build of this product (v2018.1 build 0341) was released 7 months ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.