Open danielmarschall opened 8 months ago
(Addendum: If you fix it, please also verify that the Modification
will be true
if the user reverts the revert by pressing Ctrl+Y. This might be another case to be considered)
Use the OnStatusChange event for this purpose.
Example code:
If the user enters something, then a asterisk will be added to the Caption.
If the change is reverted using Ctrl+Z , the asterisk should disappear again, but this does not work because
SynEdit1.Modified
is true inside theOnChange
Event.Modified
should be false not true in this case.However, after the OnChange Event, the
Modified
flag is set correctly.So the "dumb" workaround for the issue is checking it with a timer.