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 

How can I save & load an unpublished property of a component

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> C++ Builder (VCL Components Development)
View previous topic :: View next topic  
Author Message
Jialing
Guest





PostPosted: Tue Aug 26, 2003 5:29 am    Post subject: How can I save & load an unpublished property of a component Reply with quote





When I create a Component by Designer->CreateComponent
from context menu, it is create a Componet but some of its
property such as Parent is not work truly at run time.
Also when I close & reopen my Form that property loss its value!
Please help me if possible.

Back to top
Ralph Kazemier
Guest





PostPosted: Tue Aug 26, 2003 8:19 am    Post subject: Re: How can I save & load an unpublished property of a compo Reply with quote




"Jialing" <Jialing (AT) yaho (DOT) com> wrote


Quote:
When I create a Component by Designer->CreateComponent
from context menu, it is create a Componet but some of its
property such as Parent is not work truly at run time.
Also when I close & reopen my Form that property loss its value!
Please help me if possible.

TPersistent introduces a virtual function DefineProperties(). Override this
function in your own class. There is an example in the help (BCB5) at
TPersistent::DefineProperties.


Ralph




Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> C++ Builder (VCL Components Development) 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.