本文整理自网络,侵删。
Memo1.WordWrap:= False;
function TForm1.FindText( const aPatternToFind: String):Boolean; var p: Integer; begin p := pos(aPatternToFind, Memo1.Text); Result := (p > 0); if Result then begin Memo1.SelStart := p; Memo1.SelLength := Length(aPatternToFind); Memo1.SetFocus; // necessary so highlight is visible end; end;
相关阅读 >>
Delphi xe5实现datetimetounix/unixtodatetime的一点小改进
如何在Delphi中禁用关于“返回值...可能未定义”的警告?
Delphi下用cdo发送邮箱实例(授权码cdo发送邮箱的解决办法)
Delphi xe intraweb 程序在iis下的发布详细教程
更多相关阅读请进入《Delphi》频道 >>