Bookmarks in LEdit
by Andrey B. Yastrebov
Sometimes it is very important to have some anchors in the text -
these may be bookmark, execution point, breakpoints and so on.
The key feature of all these things is that they are anchored on
the line of text and moves with it, that is if an user inserts
new line before the line where such an anchor lives, the anchor
moves down with the line it lives on.
LEdit unites all these anchors under the notion of bookmarks.
LEdit may ensure right behaviour of up to 255 bookmarks. At any
time you may get an information on the
position of any bookmark. Moreover you may show them to the
user - bookmarks in LEdit are colorable!
It is very easy to highlight bookmark. You just set a text color
for that bookmark and its background color. LEdit will keep a track
of the bookmark and will draw the entire line containing the bookmark
with selected colors, so user's attention may be attracted to
some place in the text, be that breakpoint, good citation or
whatever. If you need this feature, bookmarks give you much
better solution than background drawing.
|