Difference between revisions of "TXMLPropStorage"

From Lazarus wiki
Jump to navigationJump to search
Line 1: Line 1:
'''Component to save/restore selected properties (eighter TForm or any control on it)
+
'''Component to save/restore selected properties (either TForm or any control on it)
Work with SessionProperties TForm property.'''
+
Works with TForm.SessionProperties property.'''
  
 
Usage:
 
Usage:
# Drop it on form and set filename like : session.xml
+
# Drop it on form and set filename, for example: session.xml
 
# Open editor window for property SessionProperties of TForm.
 
# Open editor window for property SessionProperties 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.
Line 10: Line 10:
 
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)
  
The same is for TINIPropStorage
+
TINIPropStorage works the same way as TXMLPropStorage, except it stores the session information in an ini-file.

Revision as of 01:04, 10 March 2006

Component to save/restore selected properties (either TForm or any control on it) Works with TForm.SessionProperties property.

Usage:

  1. Drop it on form and set filename, for example: session.xml
  2. Open editor window for property SessionProperties of TForm.
  3. Add here properties of form and/or controls to be stored inside session.xml.
  4. Rebuild 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.