本文整理自网络,侵删。
使用它的TMemo.SelText属性就可以。 例如:Memo1.SelText := '插入字符串'; 如果不希望将当前选中字符串被替换,之前可以使用TMemo.SelLength设置为0。
相关阅读 >>
Delphi keydown与keyup、keypress的区别
Delphi android 中 toast 的实现(老外写的unit)
Delphi屏蔽win、ctrl_esc、alt_tab、alt_f4等键(windows xp、windows 2003 server下测试通过)
更多相关阅读请进入《Delphi》频道 >>