Franky Brandt
Franky Brandt

Reputation: 203

Delphi vcl component 'About' property

I'm currently making a new vcl component, i made some before and now experience that i done something wrong everytime. It's only a minor issue but i wonder what would be the solution.

My component has a Constant cmpVersion = 1.01; which is then shown in a 'About' published property, showing the version of the component.

In the component constructor the About property is set to the value of the constant.

All seems ok if you place the component on a form, the about property is the correct version, but if i change the version constant in the component package, reinstall the package and reopen the test application that already has the component on the form it is still showing the old version, because it was set in the constructor.

I guess the About property is saved in the test app dfm.

What is the proper way to update the About property when opening a form with the component already on it?

Upvotes: 2

Views: 254

Answers (1)

Franky Brandt
Franky Brandt

Reputation: 203

Comment by Victoria contains the solution, use 'Stored = False' on the about property so it's not saved in the dfm.

Upvotes: 4

Related Questions