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 

Multiple Bookmark Lists

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



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

PostPosted: Tue Nov 07, 2006 12:19 am    Post subject: Multiple Bookmark Lists Reply with quote

Hi Michael,

is it possible to work with multiple bookmark list's for one SyntaxMemo?

I want to have a separate list for compiler errors, which should not accesible via shortcuts and so on.

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: Tue Nov 07, 2006 2:01 pm    Post subject: Reply with quote

Yes, it is possible.

Create bookmarks with BmIndex not equal 0..9 (0..9 are accessible from shortcuts).
Back to top
View user's profile Send private message Send e-mail
jfudickar



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

PostPosted: Tue Nov 07, 2006 2:27 pm    Post subject: Reply with quote

Which part is possible?

Multiple Bookmarklists? I want to create a second list for the same memo.

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: Thu Nov 09, 2006 6:23 am    Post subject: Reply with quote

Hi Jens,

You may create own bookmarcollection (out of editor). Then use OnGetGutterImage to add bookmarks from this collection to the displayed list for particular line.

Code:
TGetGutterImageEvent = procedure(Sender: TObject; const Line: integer; List: TList) of object;


Michael.
Back to top
View user's profile Send private message Send e-mail
jfudickar



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

PostPosted: Thu Nov 09, 2006 7:00 am    Post subject: Reply with quote

But i didn't want to see them on the gutter.

I only want to have the bookmarks which will be positioned to a special point, and when the text is changed, that the bookmark-positions are moved also.

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: Thu Nov 09, 2006 10:11 am    Post subject: Reply with quote

if
ImageIndex := -1
ForeColor := clNone
BgColor := clNone

then bookmark is invisible.

if BmIndex >= 10 then bookmark can not be toggled by the user.

Michael.
Back to top
View user's profile Send private message Send e-mail
jfudickar



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

PostPosted: Thu Nov 09, 2006 11:34 pm    Post subject: Reply with quote

Sorry, again : is it possible to work with multiple bookmark list's for one SyntaxMemo?
Back to top
View user's profile Send private message Visit poster's website
econtrol
Site Admin


Joined: 09 Jun 2006
Posts: 202

PostPosted: Fri Nov 10, 2006 6:20 pm    Post subject: Reply with quote

Hi Jens,

No, it is not possible in the editor.
If you want to have external bookmark list you should modify it manually in OnTextChanged event handler.

But I offer to use bookmark list, that is present in editor. Use BmIndex or Tag properties to distinguish different bookmark types.

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