Thanks Neil

Yes, I am handling that notification message. However sometimes my edits
still continue so it doesn't seem to be stopping all the edits (although
this may be bugs in my code which I am still tinkering with).

More importantly though, I do want the edits to continue *if* the document
doesn't need reloading, but only to stop the edits if the document does need
to be reloaded. I want behaviour just like Visual Studio really, if that
helps.

Regards
Dan Petitt

coderanger.com 

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Neil Hodgson
Sent: 20 February 2007 22:31
To: Discussion of the Scintilla editing component
Subject: Re: [scintilla] OnModifyAttempt

Dan Petitt:

> I use this notification to checkout a file from SourceControl, however 
> I need to be able to return FALSE and stop the editing that triggered 
> the action.

   The name of the notification is SCN_MODIFYATTEMPTRO because the document
is read-only. The editing action is automatically stopped. If you want to
reload the document and make it writable post the container a message to do
so.

   Neil
_______________________________________________
Scintilla-interest mailing list
[email protected]
http://mailman.lyra.org/mailman/listinfo/scintilla-interest


_______________________________________________
Scintilla-interest mailing list
[email protected]
http://mailman.lyra.org/mailman/listinfo/scintilla-interest

Reply via email to