如何取得Memo中光标的位置(指横纵坐标)??? 如何取得Memo中光标的位置(指横纵坐标)因某种需求需获得memo中当前光标标的位置(光标的最上端或最下端都可) 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 begin edit1.Text:=inttostr(memo1.CaretPos.X); edit2.Text:=inttostr(memo1.CaretPos.Y);end; 谢谢 yang6130(无限可能) 不过偶说了,是相对于memo的横纵坐标 //uses shellapivar pt:TPoint;begin GetCaretPos(pt); edit1.Text:=inttostr(pt.x); edit2.Text:=inttostr(pt.Y);end; delphi xe 安装问题 数据库插入问题 求 Delphi7.0+Rose 项目开发实践 的随书光盘 SQL2000触发器的问题 寻找串口编程资料 关于listview的问题 ”应用程序“ 生成 ”安装软件“的问题————在线等待??!·!·· QuickRep保存到文本时为什么是乱码? 如何获取IMAGE中图相的路径 帮忙,在GRID做了这计算字段,但计算不准确的,为什么,时间紧逼,帮帮忙 一个很简单的问题:如何定义一个全局变量,即能被整个程序,任何窗体调用。 急!等! 为何打不开文件,打开是出错! 100分!求解?错误如下
edit1.Text:=inttostr(memo1.CaretPos.X);
edit2.Text:=inttostr(memo1.CaretPos.Y);
end;
不过偶说了,是相对于memo的横纵坐标
var
pt:TPoint;
begin
GetCaretPos(pt);
edit1.Text:=inttostr(pt.x);
edit2.Text:=inttostr(pt.Y);
end;