trichview.support
Re: line break after InserBreak |
Author |
Message |
Sergey Tkachenko |
Posted: 06/17/2002 14:59:49 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