Posted 17 years ago
by Colin Blakey
-
Application Development Manager,
Vertex Inc
Version: 4.0.0257
Platform: .NET 2.0
Environment: Windows XP (32-bit)
This may be related to the issue in the bug report "Redo doesn't reset modified flag correctly " on 06/21/2007 by Roy Arvenäs.
I have a small issue with the CanRedo property. I have hooked up the SelectionChanged event and I'm using it to update the a toolbar for the editor panel. When I change a single character this event fires. Checking property CanUndo it is true (correct) and CanRedo is false (correct). If I then undo that change using Ctrl-Z the event fires and CanUndo is now false (correct) but CanRedo is also false (incorrect). When the UserInterfaceUpdate event fires the properties are correct but this event does not fire quickly enough for the purposes of the toolbar update.
Thanks
Colin Blakey
I have a small issue with the CanRedo property. I have hooked up the SelectionChanged event and I'm using it to update the a toolbar for the editor panel. When I change a single character this event fires. Checking property CanUndo it is true (correct) and CanRedo is false (correct). If I then undo that change using Ctrl-Z the event fires and CanUndo is now false (correct) but CanRedo is also false (incorrect). When the UserInterfaceUpdate event fires the properties are correct but this event does not fire quickly enough for the purposes of the toolbar update.
Thanks
Colin Blakey