>>>Hi ,
>>> I want to add a bookmark function of my program .
>>> The idea is ,when user press the bookmark in list box,then the edit box will auto jump to the line that the bookmark is.
>>> I try to use SelLength and something like that to do ,but fail .
>>>
>>> Do you have any idea about that ?
>>> Thanx a lot !
>>>
>>> Regards ,
>>>JK
>>
>>If you want to change cursor position in editbox, use SelStart property.
>
>Thanx Edward ,I have solved it.
>But the speed of the process is holy slow .
>The memo size is about 500kb.
>And I need to use about 3-4 second to go to the location that bookmarked.
>Do you have any idea to speed it up ?
>Thanx a lot for your help
I do not know how you keep your bookmarks. If let say you would store an offset, i.e. real Selstart value, then next time it would jump there momentarily, though edit/save may get slower.
Edward Pikman
Independent Consultant