我现在想要在treeview中添加节点时是往前面添加,请问怎么做?
解决方案 »
- 有问题了, 知识的问题~~~~~
- 这就是我们的警察
- 怎么样设置dbgrid1的固定列宽
- 请问高手,有没有在某个文件夹中判断某个文件是否存在的例子啊
- 向各位大哥讨教!!
- 窗体合并问题
- 怎么在mediaplayer控件播放时,在视频流的画面上加上自己的文字 并且是透明的?
- 我用Sql2000建了个数据库C:\Test.mdf,服务器用RemoteDataModule(包括SqlConnection,DataSetProvider,SQLDataSet)... 附送全部可用分!
- 还有几个兄弟没睡觉?签名!
- 高手救命,SOS
- 新手提问:怎样实现一个按点一下就显示窗体,再点一下就隐藏窗体,自由切换!!~~
- 如何把文本内容读出声音?
TreeView.Items.add 在最后一个位置添加
TreeFriend.Items[i].MoveTo(TreeFriend.Items[i].Parent,naAddChildFirst);
移动到
那里,自己看一下参数TNodeAttachMode identifies a new or changed tree node relationship. UnitComCtrls or QComCtrlsDelphi syntax:enum TNodeAttachMode {naAdd, naAddFirst, naAddChild, naAddChildFirst, naInsert};C++ syntax:type TNodeAttachMode = (naAdd, naAddFirst, naAddChild, naAddChildFirst, naInsert);DescriptionThe TNodeAttachMode type specifies the way a new or relocated tree node will be related to some other node.Value MeaningnaAdd The new or relocated node becomes the last sibling of the other node.
naAddFirst The new or relocated node becomes the first sibling of the other node.
naInsert The new or relocated node becomes the sibling immediately before the other node.
naAddChild The new or relocated node becomes the last child of the other node.
naAddChildFirst The new or relocated node becomes the first child of the other node.