%HI_AddTreeItem( INT in refId, TEXT in itemText, INT in parentHandle, INT in itemHandle [, HBJ in insertAfterHandle] )
refId | Reference to graphic object
(reference variable). |
itemText | Text in the added item. |
parentHandle | Parent item identifier or 0. |
itemHandle | New item identifier. |
insertAfterHandle | Optional parameter - identifier of the item, after which you want to add new item. If the value is 0, the item will be inserted as the last one (as well as the parameter is not defined). If the value is -1, the item will be inserted as first one. |
; two root items %HI_AddTreeItem(_tree, "10", 0, 10) %HI_AddTreeItem(_tree, "20", 0, 20) ; %HI_AddTreeItem(_tree, "11", 10, 11) %HI_ExpandItem(_tree, 10, @TRUE)
The reference variable _tree identifies the tree view.
Pridať komentár