Hm, when creating the form, the result is not displayed:
for var I := Ord(TCheckGrp.cgPlace5) to Ord(TCheckGrp.cgPlace17) do
ofchgrTypeOfRound.CheckBoxes[I].Visible := False;
This will take effect if I use this when the form content is already displayed.
Unfortunately, that's already too late. Is there a workaround for this problem?
procedure TfrmsubRound.FormShow(Sender: TObject);
begin
ofchgrTypeOfRound.Columns := 2;
ofchgrTypeOfRound.Width := ofchgrTypeOfRound.Width - Trunc(ofchgrTypeOfRound.Width / Idx3);
for var I := Ord(TCheckGrp.cgPlace5) to Ord(TCheckGrp.cgPlace17) do
ofchgrTypeOfRound.CheckBoxes[I].Visible := False;
end;
But I don't know how to solve the following: