wxscintilla and undo/redo..

BlitzMax Forums/Brucey's Modules/wxscintilla and undo/redo..

Dabhand(Posted 2012) [#1]
Cut a long story short... How?

Been scratching my head with this most of the day, in my OnInit, I have:-

Self.SetSelection(0, 0)
Self.EmptyUndoBuffer()
Self.SetUndoCollection(True)


Then, when I select the "undo" menu item, I hit it with Self.Undo(), which, removes all the text from the control (Instead of the few characters I type), though, afterwards, if I bang it with Self.Redo(), it puts them back?

I'm confused.com

Help!!!

Dabz

Last edited 2012


Dabhand(Posted 2012) [#2]
Anyone? Noone? Someone?

Even just a ickle bit of advice of how I should go about this would be appreciated, I've ran out of places to look!

I've contemplated recording my own undo/redo by copying the text, but, I imagine that's overkill, memory hog and using scintillas own setup would be much more efficient!

Dabz