Is such a component available in the component pack?
We'd suggest TAdvStringGrid where you can set a checkbox in each cell and thus can easily create a multicolumn checklist.
Alternatively, if you need the checkbox only in one column and multiple columns of text, you could use also our TAdvTreeView setup with:
procedure TForm1.FormCreate(Sender:
TObject);
var
c: TAdvTreeViewColumn;
n: TAdvTreeViewNode;
I: Integer;
begin
AdvCheckedTreeView1.BeginUpdate;
AdvCheckedTreeView1.Columns.Clear;
c := AdvCheckedTreeView1.Columns.Add;
c.Text := 'Col 1';
c :=
AdvCheckedTreeView1.Columns.Add;
c.Text := 'Col 2';
c :=
AdvCheckedTreeView1.Columns.Add;
c.Text := 'Col 3';
AdvCheckedTreeView1.Nodes.Clear;
AdvCheckedTreeView1.NodesAppearance.LevelIndent := 0;
AdvCheckedTreeView1.NodesAppearance.ExpandWidth := 0;
AdvCheckedTreeView1.NodesAppearance.ExpandHeight := 0;
AdvCheckedTreeView1.NodesAppearance.ShowLines := False;
AdvCheckedTreeView1.NodesAppearance.SelectionArea := tsaFull;
for I := 0 to 9 do
begin
n :=
AdvCheckedTreeView1.Nodes.Add;
n.CheckTypes[0] :=
tvntCheckBox;
n.Text[0] := 'Item '
+ inttostr(I);
n.Text[1] := 'Item '
+ inttostr(I);
n.Text[2] := 'Item '
+ inttostr(I);
end;
AdvCheckedTreeView1.EndUpdate;
end;
Thanks for great suggestions ....
There is no direct replacement. With TAdvStringGrid you'd need to reorganize the cells/columns when the grid resizes.
OK. Thanks for the suggestions.
There is actually something that goes in this direction but with several more features in the works and where you won't need to manipulate CheckListBox.Columns from the form OnResize event.