How to save undo/redo Stack

SyntaxEditor for Windows Forms Forum

Posted 11 years ago by Heribert Scharnagl
Version: 12.1.0304
Avatar

Hi,

is there any way to store the undo/redo stack via stream?
 

Comments (5)

Posted 11 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar

Hi Heribert,

I'm sorry but there isn't a way to save/restore the undo stack between application sessions.


Actipro Software Support

Posted 11 years ago by Heribert Scharnagl
Avatar

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?

Posted 11 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar

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.


Actipro Software Support

Posted 11 years ago by Heribert Scharnagl
Avatar

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

Posted 11 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar

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.


Actipro Software Support

The latest build of this product (v24.1.0) was released 2 months ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.