hiCreateTreeItem
hiCreateTreeItem(s_itemName[g_description] [g_itemIcon] [g_selectionIcon] [g_expandedIcon] [g_expandedSelectionIcon] ) =>r_treeItem/nil
Description
Creates a new item for a tree. Use hiTreeAppendItem or hiTreePrependItem to attach the item to a tree.
For an overview of the tree table field, see hiCreateTreeTable.
Arguments
Values Returned
Additional Information
You can specify a tooltip for a tree item by setting the hiToolTip property on r_treeItem (the return value of hiCreateTreeItem). The value of the hiToolTip property can either be a string or a list of strings. If it is one string, that string is the tooltip for all columns of the tree item. If it is a list of strings, the first string is the tooltip for the first item in g_description, the second is the tooltip for the second item in g_description, and so on. If there are fewer tooltip items than the number of columns, the last tooltip string is applied to the remaining columns. For example:
putprop _i908259_0 (list "one" "two" "three" "four") ’hiToolTip
specifies tooltips for all four columns of a tree item.
putprop _i908259_1 "tooltip for all cols except those w/o description" ’hiToolTip
specifies one tooltip that applies to all columns of the tree item.
putprop _i908259_3 (list nil "two" "tooltip for three and four") ’hiToolTip
specifies that the first column has no tooltip, the second column has the tooltip "two", and the last two columns have the last string as the tooltip.
You can specify a callback, to be called when a tree item is double-clicked, by setting a property on the tree table field.
Related Topics
Return to top