|
|
|
|
|
- Overview of the TreeView Table control
- How to?
- Creating a TreeView Table control
- Control characteristics
- TreeView column
- Handling the nodes of the tree structure programmatically
- Vocabulary
- Swapping the Table/TreeView Table controls
The TreeView Table control
Overview of the TreeView Table control The TreeView Table control is a cross between the Table control and the TreeView control. This control is based on the structure of a Table control (column, row, cell) but it also contains a TreeView column that introduces the notion of tree structure. This notion does not exist in a Table control. A TreeView Table control allows you to perform a single selection or a multiple selection as well as a sort on the columns (sort by level, among sibling elements). The information displayed in the TreeView Table control can: - be determined programmatically: this is referred to as an fieldhierarchical table .
- come from a variable: this is referred to as an TreeView Table control based on a variablefield .
- come from a data file or a query: this is referred to as an field Browsing TreeView Table. Only the browsing TreeView Table controls loaded in memory are available. In this case, the control handles the records of the data file loaded in memory.
Creating a TreeView Table control To create a TreeView Table control: - On the "Creation" tab, in the "Data" group,
- expand "Table and List Box" and select "TreeView Table".
- Click where the control will be created in the window or page.
Note: The dimensions of the field created are optimized to occupy the space available at the position indicated.. If the field size doesn't suit you, use the Ctrl + Z key combination: the field will return to its default size.Control characteristics To view the characteristics of the control, select "Description" in the context menu. There are two types of information: - the information regarding the entire TreeView Table control (all you have to do is select the name of the control).
- the information regarding each column of the TreeView Table control (all you have to do is select the name of a column).
Table and TreeView Table controls, as well as their columns, share most of their characteristics. For more details on the characteristics of Table controls, see: For more details on TreeView Table controls, see: TreeView column To choose the column containing the hierarchy: - Open the TreeView Table control description window.
- On the "General" tab, enter the number of the desired column in "Number of TreeView column".
Handling the nodes of the tree structure programmatically To modify the images of the treeview nodes in a TreeView Table control, use the following properties: To easily handle a TreeView Table control, you must be familiar with the following vocabulary: | | Name | Definition |
---|
Selection bar | Used to view the selected element. A specific color is used in most cases. | Branch | Part of the tree structure 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 contents of a tree: Root, Node or Leaf are elements of a tree structure in a hierarchical table. | Leaf | Last element of the tree structure: there are no lower levels. | Node | Intermediate level, can have higher levels (also called "Parent" levels) and lower levels (also called "Child" levels). Note: the root and leaves correspond to specific nodes. | Root | First element in the tree structure of the TreeView Table. The entire tree structure can be expanded from this element. |
Swapping the Table/TreeView Table controls A Treeview Table control can be automatically transformed into a Table control and conversely: - Select the TreeView Table control to transform.
- On the "Modification" tab, in the "Transformations" group, expand "Refactoring and swapping" and select "Table / TreeView Table".
Related Examples:
|
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...
|
|
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.
|
|
Unit examples (WINDEV): Drag and drop
[ + ] Using Drag & Drop with the WLanguage functions. The following topics are presented in this example: 1/ How to manage Drag&Drop between WINDEV controls 2/ How to manage Drag&Drop from the Windows file explorer to a WINDEV control Drag & Drop is used to move objects via the mouse. "Drag" consists in clicking an object and moving the mouse while keeping the left button down. "Drop" consists in releasing the left mouse button. Drag & Drop can be used with WINDEV on the List Box, TreeView, Table and Image controls.
|
|
Unit examples (WINDEV): The Table/TreeView Table control (Progress Bar columns)
[ + ] Using a Progress Bar column as well as the ..TextProgressBar property in a Table or TreeView Table control
|
This page is also available for…
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|