trichview.com

trichview.support




Re: bookmarking linenumbers in RV Editor


Return to index


Author

Message

Sergey Tkachenko

Posted: 05/27/2005 23:44:34


As I understand, you need to store the position in the file.

It's an integer value.


var ini: TIniFile;



ini := TIniFile.Create(LocationOfIniFile + 'BM_ini.ini');

ini.WriteInteger(IniFileSection, 'Bookmark',

RVGetLinearCaretPos(RichViewEdit2));

ini.Free;


When opening the same document, use ini.ReadInteger.


>

> I still don't know what you mean...

>

> Richard

>

> "Sergey Tkachenko" <svt@trichview.com> wrote:

> >RVStyle2.SaveINI ???

> >Create TIniFile and write it there.

> >

> >>

> >> Hi Sergey ,

> >> I put RVLinear in my USES clause

> >> and the following button but it does not work...

> >> Any help is appreciated

> >>

> >> Richard

> >>

> >> procedure TForm3.Button8Click(Sender: TObject);

> >> var Bookmark: Integer;

> >> begin

> >>         Bookmark:= RVGetLinearCaretPos(RichViewEdit2);

> >>                 RVStyle2.SaveINI(BM_ini.ini, Bookmark);

> >> end;

> >

> >

>





Powered by ABC Amber Outlook Express Converter