| View previous topic :: View next topic |
| Author |
Message |
daniel Guest
|
Posted: Sun Dec 21, 2003 8:39 am Post subject: howto save runtime info |
|
|
allo
how to save runtime info of objects on the form thus when the exe is
restarted the previous states of those objects
on the form will be displayed as they were last positioned, and not based
on the design-time locations.
thanks.
ciao
daniel
|
|
| Back to top |
|
 |
John of Aix Guest
|
Posted: Sun Dec 21, 2003 11:40 am Post subject: Re: howto save runtime info |
|
|
"daniel" <websmith (AT) singnet (DOT) com.sg> a écrit dans le message de news:
bs3l7r$ueg$1 (AT) mawar (DOT) singnet.com.sg...
| Quote: | allo
how to save runtime info of objects on the form thus when the exe is
restarted the previous states of those objects
on the form will be displayed as they were last positioned, and not
based
on the design-time locations.
|
In the registry or an ini file of course.
|
|
| Back to top |
|
 |
Steven Guest
|
Posted: Wed Dec 24, 2003 2:10 pm Post subject: Re: howto save runtime info |
|
|
"John of Aix" <j.murphynospam (AT) libertysurf (DOT) fr> wrote
| Quote: |
"daniel" <websmith (AT) singnet (DOT) com.sg> a écrit dans le message de news:
bs3l7r$ueg$1 (AT) mawar (DOT) singnet.com.sg...
allo
how to save runtime info of objects on the form thus when the exe is
restarted the previous states of those objects
on the form will be displayed as they were last positioned, and not
based
on the design-time locations.
In the registry or an ini file of course.
|
That's where, not how.
Daniel,
I think you'll have to look up RTTI (run-time type information).
Sorry I can't give you the details; when I last tried this it didn't work
the way I wanted (more specificly: when I reread the information the
object's event handlers were lost).
One more thing: neither registry nor ini-files are the right place for
(possibly long) binary datastreams.
Steven
|
|
| Back to top |
|
 |
pr Guest
|
Posted: Thu Dec 25, 2003 7:26 am Post subject: Re: howto save runtime info |
|
|
"daniel" <websmith (AT) singnet (DOT) com.sg> wrote
| Quote: | allo
how to save runtime info of objects on the form thus when the exe is
restarted the previous states of those objects
on the form will be displayed as they were last positioned, and not based
on the design-time locations.
|
Use the TFormStorage component of the RXlibrary.
PR
|
|
| Back to top |
|
 |
Mike Shkolnik Guest
|
Posted: Thu Dec 25, 2003 9:17 pm Post subject: Re: howto save runtime info |
|
|
As alternative you may use procedures from our freeware SMComponent library:
http://www.scalabium.com/download/smcmpnt.zip
There in Obj2XML.pas unit you'll find two procedures that allow to save and
restore any object to/from xml-file
Personally we use these procedures when we need save application settings in
xml-file
--
With best regards, Mike Shkolnik
E-mail: [email]mshkolnik (AT) scalabium (DOT) com[/email]
WEB: http://www.scalabium.com
"pr" <shin (AT) netactive (DOT) co.za> wrote
| Quote: |
"daniel" <websmith (AT) singnet (DOT) com.sg> wrote in message
news:bs3l7r$ueg$1 (AT) mawar (DOT) singnet.com.sg...
allo
how to save runtime info of objects on the form thus when the exe is
restarted the previous states of those objects
on the form will be displayed as they were last positioned, and not
based
on the design-time locations.
Use the TFormStorage component of the RXlibrary.
PR
|
|
|
| Back to top |
|
 |
|