EControl Ltd. Forum Index EControl Ltd.
VCL libraries and software support forum
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Persisting Editor State

 
Post new topic   Reply to topic    EControl Ltd. Forum Index -> EControl Syntax Editor
View previous topic :: View next topic  
Author Message
mstaszew



Joined: 21 Jul 2006
Posts: 67
Location: North Carolina, USA

PostPosted: Tue Jul 25, 2006 9:44 pm    Post subject: Persisting Editor State Reply with quote

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
View user's profile Send private message
jfudickar



Joined: 12 Jun 2006
Posts: 38
Location: Eschborn, Germany

PostPosted: Wed Jul 26, 2006 7:26 am    Post subject: Reply with quote

Good idea.

And combine it with my feature request :

http://www.econtrol.ru/mantis/view.php?id=14

Greetings
Jens
Back to top
View user's profile Send private message Visit poster's website
econtrol
Site Admin


Joined: 09 Jun 2006
Posts: 202

PostPosted: Wed Jul 26, 2006 8:56 am    Post subject: Reply with quote

I shall try to implement this object in v2.25.

Michael.
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic   Reply to topic    EControl Ltd. Forum Index -> EControl Syntax Editor All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group