本文整理自网络,侵删。
使用它的TMemo.SelText属性就可以。 例如:Memo1.SelText := '插入字符串'; 如果不希望将当前选中字符串被替换,之前可以使用TMemo.SelLength设置为0。
相关阅读 >>
Delphi 关于 class helper for ... 语法
Delphi processid, process handle, window handle 之间的互相转换
Delphi url protocol 让浏览器运行本地的exe程序
Delphi windows 编程[12] - 菜单与菜单资源(1-3)
更多相关阅读请进入《Delphi》频道 >>