Created a frame.
Dropped a TStringGrid on it, set ColCount to 1 and FixedCol to 1
Created two columns.
In the frame's constructor I've got:
constructor TFrame1.Create(TheOwner: TComponent);
begin
inherited Create(TheOwner);
StringGrid1.ColWidths[0] := 25;
end;
Dropped the grid on the project's main form and ran the app. The fixed column's width was adjusted the first time I ran the project. After that, the adjustment stopped working.
I've added a private attribute fSG of type TFrame1 to the main form, and in the OnCreate I added this:
procedure TForm1.FormCreate(Sender: TObject);
begin
fsg := TFrame1.create(Self);
fsg.Parent := self;
fsg.Align := alClient;
end;
The width of the fixed col for fSG works correctly. The one for the dropped frame doesn't.
Attached project.
Could someone confirm this behavior? Also, should I report it as a bug?