View previous topic :: View next topic |
Author |
Message |
jfudickar
Joined: 12 Jun 2006 Posts: 38 Location: Eschborn, Germany
|
Posted: Tue Nov 07, 2006 12:19 am Post subject: Multiple Bookmark Lists |
|
|
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 |
|
|
econtrol Site Admin
Joined: 09 Jun 2006 Posts: 202
|
Posted: Tue Nov 07, 2006 2:01 pm Post subject: |
|
|
Yes, it is possible.
Create bookmarks with BmIndex not equal 0..9 (0..9 are accessible from shortcuts). |
|
Back to top |
|
|
jfudickar
Joined: 12 Jun 2006 Posts: 38 Location: Eschborn, Germany
|
Posted: Tue Nov 07, 2006 2:27 pm Post subject: |
|
|
Which part is possible?
Multiple Bookmarklists? I want to create a second list for the same memo.
Greetings
Jens |
|
Back to top |
|
|
econtrol Site Admin
Joined: 09 Jun 2006 Posts: 202
|
Posted: Thu Nov 09, 2006 6:23 am Post subject: |
|
|
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 |
|
|
jfudickar
Joined: 12 Jun 2006 Posts: 38 Location: Eschborn, Germany
|
Posted: Thu Nov 09, 2006 7:00 am Post subject: |
|
|
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 |
|
|
econtrol Site Admin
Joined: 09 Jun 2006 Posts: 202
|
Posted: Thu Nov 09, 2006 10:11 am Post subject: |
|
|
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 |
|
|
jfudickar
Joined: 12 Jun 2006 Posts: 38 Location: Eschborn, Germany
|
Posted: Thu Nov 09, 2006 11:34 pm Post subject: |
|
|
Sorry, again : is it possible to work with multiple bookmark list's for one SyntaxMemo? |
|
Back to top |
|
|
econtrol Site Admin
Joined: 09 Jun 2006 Posts: 202
|
Posted: Fri Nov 10, 2006 6:20 pm Post subject: |
|
|
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 |
|
|
|