Dan Petitt wrote:
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.

This may or may not be of interest to you, but my usage of the Scintilla "readonly" feature is as follows:

I have an "IDE-like" application where I allow the user to enter/edit Objective Caml source and then optionally "evaluate" (compile and run) some or all of it.

As soon as the compile is done (which may have included setting a number of indicators and markers on errors/warnings), I set "readonly" mode. The first time an attempt is made to alter the buffer, I "allow" it to complete... but while in the notify handler, I perform multiple "styling" operations: remove ALL indicators and all markers that were highlighting errors and warnings.

The above works as expected at all times.

Robert Roessler
[EMAIL PROTECTED]
http://www.rftp.com
_______________________________________________
Scintilla-interest mailing list
[email protected]
http://mailman.lyra.org/mailman/listinfo/scintilla-interest

Reply via email to