I'm currently upgrading our components packs, and Delphi version (10.3 to 11.3).
The AdvStringgrids (our local descendant) are going from version 3.1.4.0 to 3.2.1.2
When I open a file with a .dfm in the IDE and save without any modifications, a few properties are changed.
The most visible to me is goFixedHorzLine
getting added to the Options
property. The others are some Color/ColorTo and some Fonts.
They even come back if I change in the "Object Inspector", save, verify with GitKraken that the change is here, close the IDE, reopen the project and then the file, I can see that the horizontal fixed lines are back.
I save, and see goFixedHorzLine
come back.
I tried, in the local descendant, to redefine the default for the property.
const
DEFAUT_OPTIONS = [goFixedVertLine, ....
...
TLocalGrid=class(TAdvColumnGrid)
...
property Options default DEFAUT_OPTIONS;
end;
...
constructor TLocalGrid.Create(AOwner:TComponent);
...
Options := DEFAUT_OPTIONS;
end;
Rebuilt our whole component suite (because of dependancies) with .bat and Delphi closed.
And the problem still persists.
I tried on a simple Vcl.TStringGrid created in D10 and didn't see this behavior when opened in D11.
What can I do to stop that behavior ?