I have this (granted, descendant) grid which contains the following in DFM file
ColCount = 11
ColWidths = (
129
129
129
129
129
129
129
129
129
129
129)
Here is snipped from LCL grids code reading this information:
procedure TCustomGrid.ReadColWidths(Reader: TReader);
var
i: integer;
begin
with Reader do begin
ReadListBegin;
for i:=0 to ColCount-1 do
ColWidths[I] := ReadInteger;
ReadListEnd;
end;
end;
I have looked at the values read + colcount (11) and it all seems correct... so far so good...
But when ReadListEnd is called I get errors
EReadError with "Invalid value for property"
EReadError with "Error reading sgData.ColWidths: Invalid value for property"
Any idea on what this error could be caused by?
1) Yes this is a grid descendant
2) Yes the file is DFM because I also use it in Delphi project
But concerning #1 #2 I have taken great care to keep everything compatible and the DFM file looks fully correct in Lazarus as well... (tried load/save the form in Lazarus first) But I am open to any suggestion on in which direction I should look.