Best way to sense "dirty" document

General TRichView support forum. Please post your questions here
Post Reply
conciliator
Posts: 25
Joined: Thu Sep 17, 2009 7:50 am

Best way to sense "dirty" document

Post by conciliator »

Hi!

What's the best way to sense wether a document has been changed or not? I'm thinking "put a boolean in OnChange", but just wanted to check if there are specific ways to do this for TRichViewEdit. Thanks!
Sergey Tkachenko
Site Admin
Posts: 17569
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Post by Sergey Tkachenko »

Any editing operation sets RichViewEdit.Modified = True.
This property is reset to False when you call Clear.
When you save, assign this property yourself.
conciliator
Posts: 25
Joined: Thu Sep 17, 2009 7:50 am

Post by conciliator »

Thanks Sergey, just what I needed to know! :)
Post Reply