Hallo Tim,
global
Delphi-Quellcode:
CONST
...
SectionSystem = 'System';
KeyFormLeft = 'FormLeft';
KeyFormTop = 'FormTop';
...
(fMain = Hauptformular)
schreiben (z.B. in FormDestroy/Close)
Delphi-Quellcode:
IniFile.WriteInteger(SectionSystem, KeyFormLeft, fMain.Left);
IniFile.WriteInteger(SectionSystem, KeyFormTop, fMain.Top);
lesen (z.B. in FormCreate)
Delphi-Quellcode:
fMain.Left:= IniFile.ReadInteger(SectionSystem, KeyFormLeft, 0);
fMain.Top:= IniFile.ReadInteger(SectionSystem, KeyFormTop, 0);