Dirty Flag management

SyntaxEditor for Windows Forms Forum

Posted 14 years ago by NSXDavid
Avatar
Does the syntaxeditor keep a "dirty" state that we can access? I want to know if the document has been touched and indicate this in the usual way in the UI. It's easy enough to hook the text changed event, but that doesn't deal with the problem of Undo which can revert a file back to its unedited state.

-- David

Comments (2)

Posted 14 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar
Absolutely... there is a Modified property on each Document object. Also on the main SyntaxEditor there is a DocumentModifiedChanged event that fires when it changes.


Actipro Software Support

Posted 14 years ago by NSXDavid
Avatar
Thanks much! I did eventually find that. Sweet. <IMG SRC="smile.gif" border="0">
The latest build of this product (v2018.1 build 0341) was released 7 months ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.