Method XbpTreeViewItem():addItem() Foundation
Adds a new item (leaf) to a tree node.
:addItem( <cCaption>, ; [<nNormalImage> | <oNormalImage>], ; [<nMarkedImage> | <oMarkedImage>], ; [<nExpandedImage>| <oExpandedImage>], ; [<cDllName>], [<xValue>] ) --> oItem | NIL or :addItem( <oItem>, [<xValue>] ) --> oItem | NIL
This method returns the added XbpTreeViewItem object. If the object is not created or added, the return value is NIL.
The method :addItem() adds a new XbpTreeViewItem object to an existing one. As a result, a new level is created in the hierarchical tree structure and the existing XbpTreeViewItem object becomes a node branching to a sub-level in a tree view.
The parameter interface offers two possibilities for the addion of a sub-item. Either configuration data for a new XbpTreeViewItem object or a created object can be passed as parameters. The first possibility is more comfortable to use since both the methods :new() and :create() are implicitly executed and configuration data is assigned automatically to the appropriate instance variables of the new object.
If you see anything in the documentation that is not correct, does not match your experience with the particular feature or requires further clarification, please use this form to report a documentation issue.