BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

howto save runtime info

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> comp.lang.pascal.delphi.misc
View previous topic :: View next topic  
Author Message
daniel
Guest





PostPosted: Sun Dec 21, 2003 8:39 am    Post subject: howto save runtime info Reply with 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.

thanks.

ciao
daniel




Back to top
John of Aix
Guest





PostPosted: Sun Dec 21, 2003 11:40 am    Post subject: Re: howto save runtime info Reply with quote




"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





PostPosted: Wed Dec 24, 2003 2:10 pm    Post subject: Re: howto save runtime info Reply with quote




"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





PostPosted: Thu Dec 25, 2003 7:26 am    Post subject: Re: howto save runtime info Reply with quote


"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





PostPosted: Thu Dec 25, 2003 9:17 pm    Post subject: Re: howto save runtime info Reply with quote

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
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> comp.lang.pascal.delphi.misc All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.