Guest_imported
New member
- Jan 1, 1970
- 0
Suppose you have writen a text-editor and have used a TMemo.
when the text changes, Modified flag set to True. Now if you execute Undo command there is situations that you text is reset to its original content. The question is this:
"How we can determine that the text is now Not-Modified ?"
NOTE 1:I have tried some methods but all of them determine some cases correctly and ... for others (eg correct changes by deleting but don't correct changes by insertion.) So your suggestion must apply in these cases :Inserting (Keyboard typing and Paste), Deleting (BkSpace,Del and Cut), Replacing (Selecting some text by Keyboard, Mouse or Select-All command and then press any key) and any other situations.
NOTE2:MS-Notepad does very BAD in this case, so don't compare your suggestion result with notepad.
when the text changes, Modified flag set to True. Now if you execute Undo command there is situations that you text is reset to its original content. The question is this:
"How we can determine that the text is now Not-Modified ?"
NOTE 1:I have tried some methods but all of them determine some cases correctly and ... for others (eg correct changes by deleting but don't correct changes by insertion.) So your suggestion must apply in these cases :Inserting (Keyboard typing and Paste), Deleting (BkSpace,Del and Cut), Replacing (Selecting some text by Keyboard, Mouse or Select-All command and then press any key) and any other situations.
NOTE2:MS-Notepad does very BAD in this case, so don't compare your suggestion result with notepad.