编辑器

优化查找输入细节
This commit is contained in:
JianjunLiu 2023-03-14 10:27:40 +08:00
parent 946df3c42b
commit 73ad8b3530
3 changed files with 11 additions and 5 deletions

View File

@ -5192,14 +5192,16 @@ type TFindWnd=class(TPage)
s := s1; s := s1;
end else end else
s := it.CaretWords(); s := it.CaretWords();
if s then SetFindText(s); SetFindText(s);
FEdit_target.Editer.SetFocus(); FEdit_target.Editer.SetFocus();
end end
inherited; inherited;
end end
Function SetFindText(s); //设置查找的字符串 Function SetFindText(s); //设置查找的字符串
begin begin
if s then
FEdit_target.Editer.Text := s; FEdit_target.Editer.Text := s;
else s := FEdit_target.Editer.Text;
FEdit_target.Editer.SetSel(0,length(s)); FEdit_target.Editer.SetSel(0,length(s));
end end
function SaveCurrentEditer(); //保存一下数据 function SaveCurrentEditer(); //保存一下数据

View File

@ -4617,9 +4617,12 @@ type tenterouterlist = class
begin begin
FIndex := -1; FIndex := -1;
FList := array(); FList := array();
if FTimer then
begin
FTimer.stop(); FTimer.stop();
FTimer := nil; FTimer := nil;
end end
end
Mousemovecall; Mousemovecall;
Mousehittest; Mousehittest;
_wapi; _wapi;
@ -4628,6 +4631,7 @@ type tenterouterlist = class
FLock; FLock;
FIndex ; FIndex ;
FList; FList;
FTimer; //20230314 ÐÞÕý´Ë´¦ÎÊÌâ
end end
type tgtk_ctl_object = class(_gtkeventtype) type tgtk_ctl_object = class(_gtkeventtype)
private private

Binary file not shown.