如何编辑Treeview节点 delphi
2个回答
展开全部
TreeView1.Items.Clear;
Node1:=TreeView1.Items.Add(NULL,'全部');
Node1.ImageIndex=0;
Node1.SelectedIndex=1;
ChildKHNode=TreeView1.Items.AddChild(Node1,"今天");
ChildKHNode.ImageIndex=2;
ChildKHNode.SelectedIndex=2
呵呵 有些偷懒了。差不多这样的意思吧。具体参数,你可ATL+上 进入treeview的类里看。
Node1:=TreeView1.Items.Add(NULL,'全部');
Node1.ImageIndex=0;
Node1.SelectedIndex=1;
ChildKHNode=TreeView1.Items.AddChild(Node1,"今天");
ChildKHNode.ImageIndex=2;
ChildKHNode.SelectedIndex=2
呵呵 有些偷懒了。差不多这样的意思吧。具体参数,你可ATL+上 进入treeview的类里看。
展开全部
this->TreeView1->Items->Clear();
Node1=this->TreeView1->Items->Add(NULL,"全部");
Node1->ImageIndex=0;
Node1->SelectedIndex=1;
ChildKHNode=this->TreeView1->Items->AddChild(Node1,"今天");
ChildKHNode->ImageIndex=2;
ChildKHNode->SelectedIndex=2;
Node1=this->TreeView1->Items->Add(NULL,"全部");
Node1->ImageIndex=0;
Node1->SelectedIndex=1;
ChildKHNode=this->TreeView1->Items->AddChild(Node1,"今天");
ChildKHNode->ImageIndex=2;
ChildKHNode->SelectedIndex=2;
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询