Dan Petitt:
Is there any way of getting at the undo history, like the last modifications made given an index into the history ... Would probably need UNDOHISTORYCOUNT and GETUNDOHISTORYITEM(nIndex) messages, so you could go GETUNDOHISTORYITEM( UNDOHISTORYCOUNT - 1 ) and then work backwards from count. It would be good if the history item gave back a structure with the Position and Characters Added/Deleted.
This is possible but a simple version may expose too much of the implementation. The container would have to understand the aggregation of actions. This would also constrain the implementation: SinkWorld has a more efficient design where text added to the buffer is not stored into the undo history as well since it is available from the buffer at that point of performing undo when it is copied into the redo stack from the buffer. If this was included, it would use individual calls rather than a structure as this is common Scintilla practice to allow access from high level languages. Neil _______________________________________________ Scintilla-interest mailing list [email protected] http://mailman.lyra.org/mailman/listinfo/scintilla-interest
