#37 Better Undo Feature

open
nobody
None
5
2005-07-15
2005-07-15
runfastman
No

When you are typing and you click to a new line and
type some more, then you hit undo or call the undo
command, it undoes both sets of typing. However, if
you hit enter or click to the end of a line and type
some more, it does set a new undo block.

Also when call BeginUndoBlock and then EndUndoBlock in
the main form who owns the SynEditBox, it seems to have
no effect on the Undo command. I don't know if I am
doing this correct or not, I can't find any example on
doing your own undo stuff.

I edited SynEdit so that it would create a new undo
block every time a new char is pressed, but I don't
understand the code well enough to fix it so that it
makes a new undo block every time the curser moves more
than one space.

Using Delphi 2005

Discussion


Log in to post a comment.