Hi there,
I've built a grid control inherited from TStringGrid for which I do not want to save a specific property (since it is always determined at run-time). The property in question is RowHeights (array property inherited from TCustomGrid).
Even if I redeclared the property within my control as
In the dfm, values still stored as
After modification done at design-time in some forms implementing the control (via a frame), there's a run-time error raised saying there's an Invalid Property Value and prevents from opening the form. After editing and deleting the RowHeights property right in the dfm, the next exe compilation is ok. But I would like to avoid editing the dfm to delete RowHeights after any minor changes in the code.
The migration from D2010 -> DXE7 is harder than what I thought at first place... :-/
I've built a grid control inherited from TStringGrid for which I do not want to save a specific property (since it is always determined at run-time). The property in question is RowHeights (array property inherited from TCustomGrid).
Even if I redeclared the property within my control as
Code:
property RowHeights stored False;
In the dfm, values still stored as
Code:
object cgrCalc: TMyGrid
RowHeights = (
17
17
17
17
17)
end
After modification done at design-time in some forms implementing the control (via a frame), there's a run-time error raised saying there's an Invalid Property Value and prevents from opening the form. After editing and deleting the RowHeights property right in the dfm, the next exe compilation is ok. But I would like to avoid editing the dfm to delete RowHeights after any minor changes in the code.
The migration from D2010 -> DXE7 is harder than what I thought at first place... :-/