Forum > General

Save Form Sittings

(1/1)

Sora-Kun:
hello,
This might be a stupid question, but i'll post it
Is there a function or something that saves the form sittings like the Last checked checkbox and The Position of the spitters for exemple or the forum resolution.
Thanks  ;D

stonefull:
Use XMLPropStorage or IniPropStorage. Define settings on form property SessionProperties.

Sora-Kun:
Thanks for replying,
I got how to set the session properties but i don't know what to do next, I don't know how to use IniPropStorage, or XMLPropstorage.
Please help. Thanx ;)

typo:
Create 2 items in StoredValues at design time and write;


--- Code: ---procedure TForm1.XMLPropStorageRestoreProperties(Sender:TObject);
begin
  Left := StrToIntDef(XMLPropStorage.StoredValues[0].Value,0);
  Top := StrToIntDef(XMLPropStorage.StoredValues[1].Value,0);
end;

procedure TForm1.XMLPropStorageSavingProperties(Sender:TObject);
begin
  XMLPropStorage.StoredValues[0].Value := IntToStr(Left);
  XMLPropStorage.StoredValues[1].Value := IntToStr(Top);
end;
--- End code ---
   

Navigation

[0] Message Index

Go to full version