trichview.com

trichview.support




Re: line break after InserBreak


Return to index


Author

Message

Benedikt Weber

Posted: 06/17/2002 15:37:53


Thanks, works perfect.


Benedikt


"Sergey Tkachenko" <svt@trichview.com> wrote in message

news:3d0dea02@support.torry.net...

> Something like this:

> RichViewEdit1->InsertBreak(1,rvbsLine,clNone);

> if

>

(RichViewEdit1->TopLevelEditor->CurItemNo==RichViewEdit1->TopLevelEditor->It

> emCount-1)

>   SendMessage(RichViewEdit1->TopLevelEditor->Handle, WM_KEYDOWN,

VK_RETURN,

> 0);

> else

>   SendMessage(RichViewEdit1->TopLevelEditor->Handle, WM_KEYDOWN, VK_RIGHT,

> 0);

>

> TopLevelEditor property is introduced in the latest version

>

> > I would like to insert a break and move the cursor to the next line.

> >

> >     RichViewEdit1->InsertText("text");

> >     RichViewEdit1->InsertBreak(1, rvbsLine, clNone);

> >

> > None of the following: is doing what I want:

> >

> > RichViewEdit1->InsertText("");    // cursor after break

> > RichViewEdit1->InsertText(" ");    // cursor on next line, there is a

> blank

> > RichViewEdit1->InsertText("\n");   // an extra line is inserted

> >

> >

> > Benedikt

> >

> >

>

>

>

>





Powered by ABC Amber Outlook Express Converter