treectrl.newItem Method


handle = treectrl.newItem(strItem, parent);

Inserts a new tree item as a child of the specified parent and returns a handle to it. The new item is inserted as the last children of its parent, if the tree control does not sort items automatically.

Parameters

strItem
Required. The text of the new item.
parent
Optional. Integer specifying the parent under which to insert the item. Default value is 0, meaning that the new item will be inserted at root level.

See also

treectrl Overview | treectrl.deleteItem

 


© 2003 Lightweight Technologies. All rights reserved.