Minor problem with "ReplaceSel" and undo |
Post Reply |
Author | |
peerschindel
Groupie Joined: 12 July 2008 Status: Offline Points: 11 |
Post Options
Thanks(0)
Posted: 21 July 2008 at 9:58am |
Hi all,
I have faced a minor problem (to not call it bug) with "ReplaceSel".
If I call it several times (which I do in our software to insert some texts
to the edit control via menu items), then all is treated as ONE undo
event (and not as several ones).
This is in contrast to ordinary paste from clipboard where I can undo each
event separately.
The reason is, that "ReplaceSel" calls
InsertString(szNewText, GetCurrentDocumentRow(), m_nCurrentCol,
TRUE);
with the last parameter "TRUE" while "Paste" calls it with
m_Selection.IsSelExist()
It would be nice, if this could be made constistent to make it more
convenient for future releases.
In the meantime for me it's no problem to make my own version of
"ReplaceSel" with the change. It's just that I want to help
to improve the SyntaxEdit control to make it even better than
it is already
Regards
|
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |