Hi,
is there any way to store the undo/redo stack via stream?
Hi,
is there any way to store the undo/redo stack via stream?
Hi Heribert,
I'm sorry but there isn't a way to save/restore the undo stack between application sessions.
Hi,
Pity! Where do the undo stack reside? Is it possible to switch between different documents in one SyntaxEditor without losing the undo stack of each document?
Hi Heribert,
The undo stack is on the document. So yes, you can swap documents into a single SyntaxEditor and the appropriate undo stack will come with each document.
Hi,
thx for your help. Switching the document works fine! But if i switch between documents the current line goes lost. So if i switch back to a scrolled document, the top line jumps to the first document line and not to the last scroll position. Is there any way to solve this?
Many Thanks,
heribert
Hi Heribert,
Documents don't store anything related to UI so you'd need to persist your view's FirstVisibleDisplayLineIndex and FirstVisibleX properties and restore those as well after the document is loaded.
Please log in to a validated account to post comments.