Gajo,
Look at the windows message EM_GETLINEFROMCHAR. This returns the line number
given the Character position (see SELSTART for CHAR position).
In your case, just store the SELSTART value as the bookmark, then set it
again to retrieve the bookmark.

Dave.

----- Original Message -----
From: "gajo" <[EMAIL PROTECTED]>
To: "Multiple recipients of list delphi" <[EMAIL PROTECTED]>
Sent: Saturday, 27 May 2000 06:29
Subject: [DUG]: Go to a line in TRichEdit


Perhaps my question is a bit easy, but it is important for me. How can I go
to a specific line in
TRichEdit or TMemo, sort of like ItemIndex with TListBox? I want to create
bookmarks, so that when I
save a bookmark it saves the current line number, and later I just click on
that bookmark and it
takes me back to that line.

Gajo Csaba

---------------------------------------------------------------------------
    New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
                  Website: http://www.delphi.org.nz


---------------------------------------------------------------------------
    New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
                  Website: http://www.delphi.org.nz

Reply via email to