ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / WLanguage / WLanguage functions / Controls, pages and windows / TreeView functions
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac CatalystUniversal Windows 10 App
Others
Stored procedures
Functions for managing TreeView controls (prefix syntax)
The following functions are used to manage TreeView controls (prefix syntax):
<TreeView>.AddAdds a "leaf" element (and all necessary nodes) into a TreeView control.
<TreeView>.CollapseCollapses a branch previously expanded.
<TreeView>.CollapseAllCollapses a branch previously expanded (as well as its child elements).
<TreeView>.CopyItemCopies an element (leaf or node) into a TreeView control.
<TreeView>.DeleteDeletes an element and all its "children" from a TreeView control.
<TreeView>.DeleteAllDeletes all elements from a TreeView control.
<TreeView>.DeleteChildDeletes the children of an element from a TreeView control without deleting the element itself.
<TreeView>.DisplayRefreshes a TreeView control from a given position.
<TreeView>.ExpandExpands a node in a TreeView control.
<TreeView>.ExpandAllExpands a node and all its child elements in a TreeView control.
<TreeView>.FindFinds an element (leaf or node) in a TreeView control and returns its path.
<TreeView>.GiveChildReturns the "children" of an element found in a TreeView control.
<TreeView>.IdentifierReturns the identifier associated with an element (node or leaf) in a TreeView control.
<TreeView>.InfoXYReturns the TreeView element found at a given position.
<TreeView>.InsertInserts a leaf into a TreeView control at a specific position.
<Treeview>.ItemStatusReturns the status of a node: collapsed, expanded or not found.
<TreeView>.ListItemLists the "children" of a node and the "child" elements of these "children" in a TreeView control.
<TreeView>.ModifyModifies an element (node or leaf) in a TreeView control.
<TreeView>.MoveItemMoves an element (leaf or node) in a TreeView control.
<TreeView>.PositionDisplays a TreeView control from a specified element (node or leaf) or returns the name of the first element displayed in a TreeView control.
<TreeView>.SelectReturns the full path of the selected element in a TreeView control.
<TreeView>.SelectCountReturns the number of selected elements in a TreeView control (for a multi-selection TreeView control).
<TreeView>.SelectMinusDeselects an element in a TreeView control.
<TreeView>.SelectPlusSelects an element in a TreeView control.
<TreeView>.SortSorts the elements found in a TreeView control.
<TreeView>.TypeItemChecks 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 23
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 12/14/2023

Send a report | Local help