| View previous topic :: View next topic |
| Author |
Message |
Jialing Guest
|
Posted: Tue Aug 26, 2003 5:29 am Post subject: How can I save & load an unpublished property of a component |
|
|
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
|
Posted: Tue Aug 26, 2003 8:19 am Post subject: Re: How can I save & load an unpublished property of a compo |
|
|
"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 |
|
 |
|