Class XbpTreeViewItem() Foundation
Class function of the XbpTreeViewItem class.
Instances of the XbpTreeViewItem class manage a single item within a tree structure (tree view). These objects are highly specialized and can only be used in conjunction with an XbpTreeView object. An XbpTreeViewItem object provides data for displaying an item while the XbpTreeView object manages the screen and lets the user navigate through the tree view.
When an item is displayed, text can be combined with graphic information such as bitmap or icon. If an image is displayed, it must be supplied as a resource linked to an executable file (EXE or DLL). The graphic information is used to visualize three possible states of an XbpTreeViewItem object: normal, marked and expanded. The "expanded" state is given when sub-items of an XbpTreeViewItem object are visible.
Within a tree view, an XbpTreeViewItem object is used for both "node" and "leaf". A node branches to a sub-level in the tree which means that it contains additional XbpTreeViewItem objects which display data of the sub-level.
The creation of an XbpTreeViewItem object can be done using the usual pattern for Xbase Parts: :new(), configuration and :create(). However, the method :addItem() provides a simplified way to create such objects. It accepts as parameters the configuration data for a new XbpTreeViewItem object and executes the methods :new() and :create() implicitly. Therefore, an entire tree view can be build solely by using the :addItem() method.
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.