procedure TForm1.Memo1MouseUp(Sender: TObject; Button: TMouseButton;<br> Shift: TShiftState; X, Y: Integer);<br>var<br> iRow,iCol: integer;<br>begin<br> iRow:=SendMessage(Memo1.handle,EM_LINEFROMCHAR,Memo1.SelStart,0);<br> iCol:=Memo1.SelStart-SendMessage(Memo1.Handle,EM_LINEINDEX,iRow,0);<br> Label1.Caption:='行: '+IntToStr(iRow+1);<br> Label2.Caption:='列: '+IntToStr(iCol+1);<br>end;