Posted 20 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 20 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 20 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 (v24.1.1) was released 3 months ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.