ISDBTree::AddNode: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
(No difference)
|
Revision as of 17:51, 21 March 2007
CoClass SDBTree, Interface ISDBTree
Sub AddNode(ParentNode As ISDBTreeNode, AddNode As ISDBTreeNode, NodePosition As EnumTreeNodePos)
Parameters
Name | Type | Description |
---|---|---|
ParentNode | ISDBTreeNode | The node where the new node as is added. Can be one of Node_xxx properties or some previously created node. |
AddNode | ISDBTreeNode | The node to be added |
NodePosition | EnumTreeNodePos | Relative location of AddNode to ParentNode: 0..before, 1..after, 2.. the first child or 3..the last child. |
Method description
Adds AddNode as a child of ParentNode.
Example code
Set Node = Tree.CreateNode
Node.Caption = "Reversed Now Playing"
Node.IconIndex = 40
Node.UseScript = Script.ScriptPath
Node.OnFillTracksFunct = "FillNPTracks"
Tree.AddNode Tree.Node_NowPlaying, Node, 3 ' Add as the last child