Armel Asselin wrote:
I would like to monitor Scintilla from within an editor 'of higher level' for which I allow part of the operations in scintilla and do some actions by myself for which I would like to block undo collection. In order to interleave actions directly handled by scintilla and actions handled by the encapsulating code, I would like to create a notification in Scintilla telling "undo action added", "undo action used" and maybe something like "action done again"... Is it of interest to anybody? whatever the case, how could I implement that in Scintilla code? it seems to be somewhere UndoHistory and CellBuffer, am I right?
Check out the "notifications" sent by Scintilla to clients/containers... see the topic "Notifications" in ScintillaDoc.html.
In particular, the SCN_MODIFIED notification allows you to monitor all sorts of changes to the document (usually both before and after the change has happened), and to tell if they were the result of direct user action or because of an Undo/Redo.
Robert Roessler [EMAIL PROTECTED] http://www.rftp.com _______________________________________________ Scintilla-interest mailing list [email protected] http://mailman.lyra.org/mailman/listinfo/scintilla-interest
