On 15.11.2010, at 21:56, Stefano wrote: > I have interested in an undo/redo mechanism for the fltk::TextEditor > unlimited (or for many times) and not for only one times as with kf_undo. Are > there some tips?
Yes. Find all the variables and functions that start with "undo" in Fl_Text_Buffer and put them into their own class. Create a stack where you can push the undo events so that you get an endless list. When the user chooses to undo, take the top undo class from the stack and apply it, just like the Fl_Text_Buffer class does right now. Then don't throw the Undo event away, but instead push it onto the redo stack. Implementing this should keep you quite busy for a few days ;-) - Matthias _______________________________________________ fltk mailing list [email protected] http://lists.easysw.com/mailman/listinfo/fltk

