|
|
|
|
|
- Overview of the TreeView control
- Control in a window or in a dynamic page
- Creating a TreeView control
- Context menu proposed automatically
- Aspect of a TreeView control in a window or in a page
- Vocabulary associated with the TreeView control
- Modes for populating a TreeView control
Overview of the TreeView control Control in a window or in a dynamic page The TreeView control is a tree structure used to simplify the display of information that can be represented hierarchically. The TreeView control is often used to represent the tree structure of a disk, directory, etc. Creating a TreeView control To create a TreeView control: - On the "Creation" tab, in the "Data" group, click "TreeView".
- Click where the control will be created in the window or page. The control appears in the editor.
To view the characteristics of the control, select "Description" in the context menu. Aspect of a TreeView control in a window or in a page Vocabulary associated with the TreeView control To handle a TreeView control, you must be familiar with some definitions: | | Name | Definition |
---|
Branch | Section of the TreeView control that can define a path:- from the root to a leaf
- from a node to another node
- from a node to a leaf
- from the root to a node.
| Element | Generic name corresponding to the content of a TreeView control. Root, Node and Leaf are elements of a TreeView control | Sheet | Last element of the tree structure: there is no level below. | Node | Intermediate level, can have higher levels (also called "Parent" levels) and lower levels (also called "Child" levels). Remark: The root or the leaves correspond to specific nodes. | Root | First element of the TreeView control. The entire tree structure can be expanded from this element. |
Modes for populating a TreeView control A TreeView control can be populated:
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
|
|
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.
|
|
Training (WINDEV): WD Reflexive link
[ + ] This example presents the management of a reflexive link with the WLanguage functions. The following topics are presented in this example: 1/ Fill a control with HFSQL content (automatic management of reflexive link). 2/ Fill by programming.
|
This page is also available for…
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|