View previous topic :: View next topic |
Author |
Message |
mstaszew
Joined: 21 Jul 2006 Posts: 67 Location: North Carolina, USA
|
Posted: Tue Jul 25, 2006 9:44 pm Post subject: Persisting Editor State |
|
|
Is there a way to persist all aspects of the editor state? Our application has a multi-tabbed editor, using a TTabControl, so there is a single instance of TSyntaxMemo and many tabs that need to share it. I am currently using the TSyntTextSource to preserve the text, current lexer, etc. and that is working quite well. I don't see where the text source has anything to do with bookmarks though and that is something that we would like to preserve as well when switching tabs. Does TSyntaxMemo support something similar to this?
The old editor component that we are trying to get rid of provides a data structure that will save everything so the code would look something like...
Editor.SaveState(TMyStateObject);
Editor.LoadState(TMyStateObject);
Thanks. |
|
Back to top |
|
|
jfudickar
Joined: 12 Jun 2006 Posts: 38 Location: Eschborn, Germany
|
|
Back to top |
|
|
econtrol Site Admin
Joined: 09 Jun 2006 Posts: 202
|
Posted: Wed Jul 26, 2006 8:56 am Post subject: |
|
|
I shall try to implement this object in v2.25.
Michael. |
|
Back to top |
|
|
|