首页 > 代码库 > CategoryPanelGroup动态生成节点

CategoryPanelGroup动态生成节点

afw

 

    TCategoryPanel *cp;    for (int i = 0; i < TreeView1->Items->Count; i++)    {        if (TreeView1->Items->Item[i]->Level == 0)        {            cp = new TCategoryPanel(CategoryPanelGroup1);            cp->PanelGroup = CategoryPanelGroup1;            cp->Caption = TreeView1->Items->Item[i]->Text;        }
}

 

CategoryPanelGroup动态生成节点