Undo of a group of commands

Undo of a group of commands

Anonymous
Not applicable
194 Views
1 Reply
Message 1 of 2

Undo of a group of commands

Anonymous
Not applicable
I have written a program which colorizes entities based on certain user
defined criteria. I have added Start and End undo marks for this coloring
and I also have a button called 'Refresh' which 'undoes' the coloring. My
problem is: if the user performs some other editing of the drawing after
coloring, and then decides to undo the coloring, ALL changes are undone, not
just the coloring. Is there a way to only undo the actions performed within
the Start and End undo marks?
0 Likes
195 Views
1 Reply
Reply (1)
Message 2 of 2

Anonymous
Not applicable
StartUndoMark and EndUndoMark are just tricky/sneaky
wrappers for UNDO Begin and UNDO End. If you do something
after ending the undo group, you can't undo only what was
in the undo group without also undoing what was done after
you ended it.


"Darrell" wrote in message
news:0052B48017939EA984C263BD751CF945@in.WebX.maYIadrTaRb...
> I have written a program which colorizes entities based on certain user
> defined criteria. I have added Start and End undo marks for this coloring
> and I also have a button called 'Refresh' which 'undoes' the coloring. My
> problem is: if the user performs some other editing of the drawing after
> coloring, and then decides to undo the coloring, ALL changes are undone,
not
> just the coloring. Is there a way to only undo the actions performed
within
> the Start and End undo marks?
>
>
0 Likes