Page 1 of 1

Best way to sense "dirty" document

Posted: Fri Oct 02, 2009 8:03 am
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!

Posted: Fri Oct 02, 2009 3:51 pm
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.

Posted: Sat Oct 03, 2009 6:59 am
by conciliator
Thanks Sergey, just what I needed to know! :)