Difference between revisions of "TXMLPropStorage"

From Lazarus wiki
Jump to navigationJump to search
(First release.Poor explanation.)
 
Line 2: Line 2:
 
Work with SessionProperties  TForm property.'''
 
Work with SessionProperties  TForm property.'''
  
Usage:
+
<nowiki>Usage:
 
1. Drop it on form and set filename  like : session.xml
 
1. Drop it on form and set filename  like : session.xml
 
2. Open editor window for property SessionProperties of TForm.
 
2. Open editor window for property SessionProperties of TForm.
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
+
The same is for TINIPropStorage</nowiki>

Revision as of 21:44, 9 March 2006

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

Usage: 1. Drop it on form and set filename like : 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) The same is for TINIPropStorage