I am a little confused by your question, so I will clarify what I am trying to solve here! ...
I think you are trying to do it
When Form2 opens, it is centrally located so that Form1 and Form1 are hidden.
When Form2 closes, Form 1 is displayed (exactly where it was hidden).
, , Form1 , Form2 .
, , ...
procedure TForm1.ButtonClick(Sender: TObject);
begin
Form2.ShowModal;
end;
, Form2 form1, Form2 poOwnerFormCenter
, , , , Form1, Form2 ,
procedure TForm1.ButtonClick(Sender: TObject);
begin
Form2.ShowModal;
Left := Form2.Left;
Top := Form2.Top;
end;