trichview.com

trichview.support




Re: end of line ?


Return to index


Author

Message

Sergey Tkachenko

Posted: 07/23/2003 13:12:35


Caret is at the end of paragraph if

1) caret is at the end of item

2) this item is the last item in the document, or next item starts a new

paragraph


rve := RichViewEdit1.TopLevelEditor;

AtEnd := (rve.OffsetInCurItem>=rve.GetOffsAfterItem(rve.CurItemNo)) and

  ((rve.CurItemNo=rve.ItemCount-1) or rve.IsFromNewLine(rve.CurItemNo+1));



> hello,

>

> how can I detect if the caret is at the end of a line ?

> I tried

>    IsParaStart(curitemno)

>    IsFromNewLine(curitemno)

> but they always seems to return "true"

>

> thanks Stef

>





Powered by ABC Amber Outlook Express Converter