本文整理自网络,侵删。
var Row, Col: Integer;begin Row := SendMessage(Memo1.Handle, EM_LINEFROMCHAR, Memo1.SelStart, 0); Col := Memo1.SelStart - SendMessage(Memo1.Handle, EM_LINEINDEX, Row, 0);//delphitop.com Label1.caption := 'Row= ' + IntToStr(Row+1) + ' Col= ' + IntToStr(Col+1);
相关阅读 >>
Delphi 10分钟10行代码开发app(Delphi 应用案例)
更多相关阅读请进入《Delphi》频道 >>