Tree_AddParent |

Funktionsname | dcl_Tree_AddParent
Syntax | `(dcl_Tree_AddParent <CONTROL> (List of Lists as (Label [als String] {Key [als String]} {ImageIndex [als Integer]} {SelectedImageIndex [als Integer]} {ExpandedImageIndex [als Integer]}) ...))`
Rückgabewert | Handle oder Boolean (T if successful; otherwise NIL)
Anwendbar auf | Tree

This method appends one or more new top level parent items to the tree. Label is the label text for the new item. If Key is specified, it must be a unique (to the tree control instance) string key to be used for identifying the new item. The three optional ImageIndex arguments are images from the control's image list that display when the item is in the normal, selected, or expanded states, respectively. The return value is the unique handle of the new item if only one item is added; if multiple items are added in one call, the return value is T if the call was successful or NIL otherwise.

This method supports an alternative syntax when adding only a single item. The alternative syntax does not require the arguments to be in nested lists.