Updating a custom component -- losing properties
From: Billw (notarealemail_at_nowhere.com)
Date: 08/26/04
- Next message: Tim Nason: "How do you get sorting to work in TTreeView"
- Previous message: Billw: "Re: still not working"
- Next in thread: Marc Rohloff: "Re: Updating a custom component -- losing properties"
- Reply: Marc Rohloff: "Re: Updating a custom component -- losing properties"
- Reply: Bruce Roberts: "Re: Updating a custom component -- losing properties"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Thu, 26 Aug 2004 15:10:40 -0400
Are there any component writing experts reading here?
I have a custom component I developed a few years ago, and have used it
extensively in an application.
Recently I modified the component, adding a new property to better define
its behaviour under different circumstances. I reinstalled the new
component, and recompiled my application, but now the application is
sometimes not saving the values for one of the old properties.
The unit used to have these properties (along with many others):
MinValue: double
MaxValue: double
I recently added a new property: MinMag: double.
The properties all show up in the property inspector. But in at least one
of the instances on a form in my application, the MinValue and the MinMag
properties are not being set to the values in the inspector (that is, both
properties stay at their default values). If I look at the ".dfm" file for
the form, the dfm shows no entry for these two properties at all for that
instance. If I edit the dfm file to add these, and then save it, it always
takes them back out!
Strangely, other instances of the same component on the same form DO show
the "MaxValue" entry, though. (But none of them have the "MinMag" property.
So, when I add new properties to an already-used component, how do I get the
new properties to work with an application developed with an older version
of the component? And how do I keep it from "losing" properties that were
there originally?
Thanks
- Next message: Tim Nason: "How do you get sorting to work in TTreeView"
- Previous message: Billw: "Re: still not working"
- Next in thread: Marc Rohloff: "Re: Updating a custom component -- losing properties"
- Reply: Marc Rohloff: "Re: Updating a custom component -- losing properties"
- Reply: Bruce Roberts: "Re: Updating a custom component -- losing properties"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|