ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / WLanguage / WLanguage functions / Controls, pages and windows / TreeView functions
WINDEV
WindowsLinuxJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac Catalyst
Others
Stored procedures
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:
TreeAddAdds a "leaf" element (and all necessary nodes) into a TreeView control.
TreeCollapseCollapses a branch previously expanded.
TreeCollapseAllCollapses a branch previously expanded (as well as its child elements).
TreeCopyItemCopies an element (leaf or node) into a TreeView control.
TreeCountReturns the number of elements found in a branch of a TreeView control.
TreeDeleteDeletes an element and all its "children" from a TreeView control.
TreeDeleteAllDeletes all elements from a TreeView control.
TreeDeleteChildDeletes the children of an element from a TreeView control without deleting the element itself.
TreeDisplayRefreshes a TreeView control from a given position.
TreeExpandExpands a node in a TreeView control.
TreeExpandAllExpands a node and all its child elements in a TreeView control.
TreeFindFinds an element (leaf or node) in a TreeView control and returns its path.
TreeGetIndexReturns the index of an element (node or leaf) in a TreeView control.
TreeGiveChildReturns the "children" of an element found in a TreeView control.
TreeIDUsed to build the path of the elements found in a TreeView control by differentiating the duplicates.
TreeIdentifierReturns the identifier associated with an element (node or leaf) in a TreeView control.
TreeInfoXYReturns the TreeView element found at a given position.
TreeInsertInserts a leaf into a TreeView control at a specific position.
TreeListItemLists the "children" of a node and the "child" elements of these "children" in a TreeView control.
TreeModifyModifies an element (node or leaf) in a TreeView control.
TreeMoveItemMoves an element (leaf or node) in a TreeView control.
TreePositionDisplays a TreeView control from a specified element (node or leaf) or returns the name of the first element displayed in a TreeView control.
TreeSelectReturns the full path of the selected element in a TreeView control.
TreeSelectCountReturns the number of selected elements in a TreeView control (for a multi-selection TreeView control).
TreeSelectMinusDeselects an element in a TreeView control.
TreeSelectPlusSelects an element in a TreeView control.
TreeSortSorts the elements found in a TreeView control.
TreeStatusReturns the state of a node: wound, unwound or non-existent.
TreeTypeItemChecks the existence of an element in a TreeView control and returns its type (node or leaf) if the element exists.
Related Examples:
The TreeView control Unit examples (WINDEV): The TreeView control
[ + ] Using the TreeView control via the WLanguage Tree functions.
WD Printing TreeViews 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
The TreeView Table 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...
WD Zip 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.
The TreeView control (selection bar) Unit examples (WEBDEV): The TreeView control (selection bar)
[ + ] This example explains how to simulate a selection bar on a treeview control.
Minimum version required
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 09/13/2024

Send a report | Local help