How to dynamically I can add panels to an TCategoryPanelGroup.
Give me a example please, thanks.
This i tried so far.
procedure TWForm.BitBtn3Click(Sender: TObject);
var
categorypanel: tcategorypanel;
begin
categorypanel := categorypanel.Create (categorypanelgroup1);
categorypanel := tcategorypanel.Create(self);
categorypanel.caption:=edit1.text;
end;
You must create the component and then set the PanelGroup
property of the CategoryPanel with the CategoryPanelGroup.
Var
LPanel : TCategoryPanel;
begin
LPanel:=TCategoryPanel.Create(CategoryPanelGroup1);
LPanel.Caption:='My Panel';
LPanel.PanelGroup:=CategoryPanelGroup1;
end;
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With