Leider nicht. Ich speichere X, Y Höhe und Breite ganz normal.
Beim Laden gehe ich so vor
Delphi-Quellcode:
_Screen := Screen.MonitorFromWindow(frmMain.Handle);
if IniFrm.ValueExists('window_options', 'x') and IniFrm.ValueExists('window_options', 'y') then
begin
x := IniFrm.ReadInteger('window_options', 'x', (_Screen.Width - frmOptions.Width) div 2);
y := IniFrm.ReadInteger('window_options', 'y', (_Screen.Height - frmOptions.Height) div 2);
end
else
begin
x := (_Screen.Width - frmOptions.Width) div 2;
y := (_Screen.Height - frmOptions.Height) div 2;
end;
frmOptions.Left := x;
frmOptions.Top := y;