Difference between revisions of "TXMLPropStorage"
From Free Pascal wiki
Jump to navigationJump to searchLine 1: | Line 1: | ||
− | ''' | + | '''TXMLPropStorage is a component to save/restore selected properties (either TForm or any control on it) |
− | Works with TForm.SessionProperties property.''' | + | Works with TForm.[[doc:lcl/forms/tform.sessionproperties.html|SessionProperties]] property.''' |
Usage: | Usage: | ||
− | # Drop | + | # Drop a [[doc:lcl/xmlpropstorage/txmlpropstorage.html|TXMLPropStorage]] component on form and set filename, for example: session.xml |
− | # Open editor window for property | + | # Open editor window for the [[doc:lcl/forms/tform.sessionproperties.html|SessionProperties]] property of TForm. |
# Add here properties of form and/or controls to be stored inside session.xml. | # Add here properties of form and/or controls to be stored inside session.xml. | ||
− | # | + | # Compile the application. |
Your application now will read selected property value from session.xml and apply it on runtime (like Width,Height,Left,Top for TForm) | Your application now will read selected property value from session.xml and apply it on runtime (like Width,Height,Left,Top for TForm) | ||
TINIPropStorage works the same way as TXMLPropStorage, except it stores the session information in an ini-file. | TINIPropStorage works the same way as TXMLPropStorage, except it stores the session information in an ini-file. |
Revision as of 11:20, 10 March 2006
TXMLPropStorage is a component to save/restore selected properties (either TForm or any control on it) Works with TForm.SessionProperties property.
Usage:
- Drop a TXMLPropStorage component on form and set filename, for example: session.xml
- Open editor window for the SessionProperties property of TForm.
- Add here properties of form and/or controls to be stored inside session.xml.
- Compile the application.
Your application now will read selected property value from session.xml and apply it on runtime (like Width,Height,Left,Top for TForm)
TINIPropStorage works the same way as TXMLPropStorage, except it stores the session information in an ini-file.