I have created a Tframe unit with visual and DB controls. I registered the frame as a component using the sprig approach. The TFrame has a few published boolean properties.
Everything works OK, except I have noticed that if I start the IDE and open a project that uses that component, the IDE complains about the "unknown" published properties. And if one looks at the DFM, Delphi has changed the definition for the frame within the form it is embedded in from "object ..." to "inline ...". If I just close the project, without saving, and re-open it, all is good.
It only happens on the first project open.
Any suggestions would be appreciated.
default
clause on a property declaration is only used for generating RTTI used by the DFM streaming system. It does not actually assign the property value, the constructor has to assign a value that matches the property'sdefault
declaration. – Remy Lebeauinline
, notobject
. If the IDE is complaining when opening the project, it probably has a bug. Which version of Delphi are you using? – Remy Lebeau