|
|
|
|
|
TreeView control functions
Note: These functions are also available in prefix syntax ( Functions for managing TreeView controls (prefix syntax)). The following functions are used to manage TreeView controls:
| | TreeAdd | Adds a "leaf" element (and all necessary nodes) into a TreeView control. | TreeCollapse | Collapses a branch previously expanded. | TreeCollapseAll | Collapses a branch previously expanded (as well as its child elements). | TreeCopyItem | Copies an element (leaf or node) into a TreeView control. | TreeCount | Returns the number of elements found in a branch of a TreeView control. | TreeDelete | Deletes an element and all its "children" from a TreeView control. | TreeDeleteAll | Deletes all elements from a TreeView control. | TreeDeleteChild | Deletes the children of an element from a TreeView control without deleting the element itself. | TreeDisplay | Refreshes a TreeView control from a given position. | TreeExpand | Expands a node in a TreeView control. | TreeExpandAll | Expands a node and all its child elements in a TreeView control. | TreeFind | Finds an element (leaf or node) in a TreeView control and returns its path. | TreeGetIndex | Returns the index of an element (node or leaf) in a TreeView control. | TreeGiveChild | Returns the "children" of an element found in a TreeView control. | TreeID | Used to build the path of the elements found in a TreeView control by differentiating the duplicates. | TreeIdentifier | Returns the identifier associated with an element (node or leaf) in a TreeView control. | TreeInfoXY | Returns the TreeView element found at a given position. | TreeInsert | Inserts a leaf into a TreeView control at a specific position. | TreeListItem | Lists the "children" of a node and the "child" elements of these "children" in a TreeView control. | TreeModify | Modifies an element (node or leaf) in a TreeView control. | TreeMoveItem | Moves an element (leaf or node) in a TreeView control. | TreePosition | Displays a TreeView control from a specified element (node or leaf) or returns the name of the first element displayed in a TreeView control. | TreeSelect | Returns the full path of the selected element in a TreeView control. | TreeSelectCount | Returns the number of selected elements in a TreeView control (for a multi-selection TreeView control). | TreeSelectMinus | Deselects an element in a TreeView control. | TreeSelectPlus | Selects an element in a TreeView control. | TreeSort | Sorts the elements found in a TreeView control. | TreeStatus | Returns the state of a node: wound, unwound or non-existent. | TreeTypeItem | Checks the existence of an element in a TreeView control and returns its type (node or leaf) if the element exists. |
Related Examples:
|
Unit examples (WINDEV): The TreeView control
[ + ] Using the TreeView control via the WLanguage Tree functions.
|
|
Training (WINDEV): WD Printing TreeViews
[ + ] This example explains how to print a Treeview. It uses a "PrintTree" class that can be easily reused for any TreeView control
|
|
Unit examples (WINDEV): The TreeView Table control
[ + ] Using the "TreeView Table" control. This control is used to organize the data found in a table in tree structure. The user has the ability to see only the informations he is interesting it. This example explains how to fill a treeview table, insert data, add child elements...
|
|
Complete examples (WINDEV): WD Zip
[ + ] This example presents the use of archiving WLanguage functions with compression. The following topics are presented in this example: 1/ How to create an archive? 2/ How to compress and uncompress files? 3/ How to manage Drag&Drop from the file explorer of Windows to a TreeView control? Summary of the example supplied with WINDEV: This example allows you to create and read compressed archives in WDZ, ZIP, CAB and RAR format (in read-only). This feature can be very useful to manage the automatic backups. Furthermore, the example allows you to create multi-volume archives.
|
|
Unit examples (WEBDEV): The TreeView control (selection bar)
[ + ] This example explains how to simulate a selection bar on a treeview control.
|
This page is also available for…
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|