|
@@ -649,7 +649,6 @@ var
|
|
HMFindFiles: THMForm;
|
|
HMFindFiles: THMForm;
|
|
begin
|
|
begin
|
|
if not gShowMenuBarInFindFiles then FreeAndNil(mmMainMenu);
|
|
if not gShowMenuBarInFindFiles then FreeAndNil(mmMainMenu);
|
|
- Height := pnlFindFile.Height + 22;
|
|
|
|
DsxPlugins := TDSXModuleList.Create;
|
|
DsxPlugins := TDSXModuleList.Create;
|
|
FoundedStringCopy := TStringListTemp.Create;
|
|
FoundedStringCopy := TStringListTemp.Create;
|
|
FoundedStringCopy.OwnsObjects := True;
|
|
FoundedStringCopy.OwnsObjects := True;
|
|
@@ -1359,11 +1358,10 @@ begin
|
|
begin // if user don't press anything - focus on results
|
|
begin // if user don't press anything - focus on results
|
|
if (pgcSearch.ActivePage = tsResults) and (lsFoundedFiles.Count > 0) then
|
|
if (pgcSearch.ActivePage = tsResults) and (lsFoundedFiles.Count > 0) then
|
|
begin
|
|
begin
|
|
|
|
+ btnGoToPath.SetFocus;
|
|
lsFoundedFiles.SetFocus;
|
|
lsFoundedFiles.SetFocus;
|
|
- if (lsFoundedFiles.ItemIndex <> -1) then
|
|
|
|
- begin
|
|
|
|
- lsFoundedFiles.Selected[lsFoundedFiles.ItemIndex] := True;
|
|
|
|
- end;
|
|
|
|
|
|
+ if lsFoundedFiles.ItemIndex<0 then lsFoundedFiles.ItemIndex:=0;
|
|
|
|
+ lsFoundedFiles.Selected[lsFoundedFiles.ItemIndex] := True;
|
|
end
|
|
end
|
|
else
|
|
else
|
|
begin
|
|
begin
|
|
@@ -1769,8 +1767,6 @@ begin
|
|
lblFound.Caption := EmptyStr;
|
|
lblFound.Caption := EmptyStr;
|
|
SetWindowCaption(wcs_NewSearch);
|
|
SetWindowCaption(wcs_NewSearch);
|
|
if pgcSearch.ActivePage = tsStandard then cmbFindFileMask.SetFocus;
|
|
if pgcSearch.ActivePage = tsStandard then cmbFindFileMask.SetFocus;
|
|
-
|
|
|
|
- btnStart.Default := True;
|
|
|
|
end;
|
|
end;
|
|
|
|
|
|
{ TfrmFindDlg.cm_LastSearch }
|
|
{ TfrmFindDlg.cm_LastSearch }
|
|
@@ -2210,6 +2206,7 @@ end;
|
|
{ TfrmFindDlg.FormShow }
|
|
{ TfrmFindDlg.FormShow }
|
|
procedure TfrmFindDlg.frmFindDlgShow(Sender: TObject);
|
|
procedure TfrmFindDlg.frmFindDlgShow(Sender: TObject);
|
|
begin
|
|
begin
|
|
|
|
+ AutoSize:=false;
|
|
pgcSearch.PageIndex := 0;
|
|
pgcSearch.PageIndex := 0;
|
|
|
|
|
|
if cmbFindFileMask.Visible then
|
|
if cmbFindFileMask.Visible then
|
|
@@ -2643,6 +2640,8 @@ end;
|
|
procedure TfrmFindDlg.tsStandardEnter(Sender: TObject);
|
|
procedure TfrmFindDlg.tsStandardEnter(Sender: TObject);
|
|
begin
|
|
begin
|
|
btnStart.Default := True;
|
|
btnStart.Default := True;
|
|
|
|
+ btnStart.SetFocus;
|
|
|
|
+ cmbFindFileMask.SetFocus;
|
|
end;
|
|
end;
|
|
|
|
|
|
{ TfrmFindDlg.UpdateTemplatesList }
|
|
{ TfrmFindDlg.UpdateTemplatesList }
|