Hello Craig, Tuesday, September 20, 2005, 10:00:46 AM, you wrote:
>>> Is it possible to have styling information restored on a redo? >> >> It should be possible to implement your own undo/redo code. > The grounds seem wrong, or too incomplete, or maybe there is too much > confidence or whatnot. I think you are correct, but I'm grateful for the use of the editor in any event. :) I think that the undo and redo should save/restore the style information, or at least have it as an option. The cut/copy and paste should really copy to two places, the real clipboard (text only) and a fake "Scintilla only" text & style clipboard. The programmer then has the option to use one of two "pastes" - the one that pastes text only or the one that pastes with style. > It seems for the Scintilla bug to be successfully concealed, the > userland programmer has to write wrapping code for CUT, PASTE, COPY, > UNDO, REDO, that saves style information, and also new code around that > saves style information when data is written. That might be code around > SetTargetStart, SetTargetEnd, ReplaceTarget. Indeed, I've now implemented the undo/redo in my code (not using scintillas undo/redo) and also the cut/copy with the user having the option of regular or smart paste. I may infact make a new cut/copy that converts to rich text... Its just a pity its not built into scintilla, it would have been nice. -- Best regards, Anthony mailto:[EMAIL PROTECTED] _______________________________________________ Scintilla-interest mailing list [email protected] http://mailman.lyra.org/mailman/listinfo/scintilla-interest
