mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-12-05 12:37:23 +01:00
TFindDialog/TReplaceDialog: show dialog poScreenCenter in IDE; fix erratic behaviour of TReplaceDialog in IDE (wrong parent). Issue #0034297.
git-svn-id: trunk@59083 -
This commit is contained in:
parent
ac8ef42f9f
commit
406ae30f3b
@ -579,6 +579,11 @@ end;
|
||||
procedure TFindDialog.CalcPosition(aForm:Tform);
|
||||
begin
|
||||
//debugln(['TFindDialog.CalcPosition: Left=',Left,', Top=',Top,', Position=',dbgs(position),', FFormLeft=',FFormLeft,', FFormTop=',FFormTop]);
|
||||
if (csDesigning in ComponentState) then
|
||||
begin
|
||||
aForm.Position := poScreenCenter;
|
||||
Exit;
|
||||
end;
|
||||
if (FFormLeft < 0) and (FFormTop < 0) then
|
||||
begin
|
||||
aForm.Position := poMainFormCenter;
|
||||
|
||||
@ -516,7 +516,7 @@ end;
|
||||
|
||||
function TReplaceDialog.CreateForm: TForm;
|
||||
begin
|
||||
Result := TReplaceDialogForm.CreateNew(Self,Options);
|
||||
Result := TReplaceDialogForm.CreateNew(nil,Options);
|
||||
with TReplaceDialogForm(Result) do
|
||||
begin
|
||||
FindMoreButton.Caption := rsFindMore;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user