首页  编辑  

移动光标到指定行列

Tags: /超级猛料/VCL/Memo&Edit&Richedit/   Date Created:

RichEdit1.SelStart := SendMessage(RichEdit1.Handle, EM_LINEINDEX, 19, 0);

RichEdit1.Perform(EM_SCROLLCARET, 0, 0);

*********************

///Kingron,我所能找到的最简单的方法:

移动光标到指定行列:

SendMessage(Richedit.handle,EM_LINEINDEX,NLine,0);

Richedit.SelStart:=RichEdit.SelStart+NCol;