AYUDA EN LÍNEA
 WINDEVWEBDEV Y WINDEV MOBILE

Este contenido se ha traducido automáticamente.  Haga clic aquí  para ver la versión en inglés.
Ayuda / Desarrollar una aplicación o un sitio web / Controles, ventanas y páginas / Controles: tipos disponibles / Control Tabla TreeView
  • 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
WINDEV
WindowsLinuxJavaReportes y ConsultasCódigo de Usuario (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Código Navegador
WINDEV Mobile
AndroidWidget Android iPhone/iPadIOS WidgetApple WatchMac Catalyst
Otros
Procedimientos almacenados
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.
The columns of a TreeView Table control and the columns of a Table control have the same characteristics.
WINDEV In WINDEV, the TreeView column of a TreeView Table control can also be a container column.
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:
  • can be programmatically determined: this is referred to as a field. Programmatically populated hierarchical table.
  • WINDEV come from a variable: this is referred to as a field TreeView Table control based on a variable.
  • WINDEV come from a data file or a query: this is referred to as an field Hierarchical table linked to a data file. Only TreeView Table controls linked to a data file loaded in memory are available. In this case, the control handles the records of the data file loaded in memory.
How to?

Creating a TreeView Table control

To create a TreeView Table control:
  1. On the "Creación" tab, in the "Datos" group,
    • WINDEV expand "Tabla y List Box" and select "TreeView Table".
  2. Click where you want to create the control in the window or page.
Nota: Las dimensiones del control están optimizadas para ocupar el espacio disponible en la posición especificada. Si no está conforme con el tamaño del control, pulse la tecla Ctrl + Z para restablecer el tamaño predeterminado del control.

Control characteristics

To view the characteristics of the control, select "Description" in the context menu. There are two types of information:
  • information about the entire TreeView Table control (simply select the field name).
  • information about each column in the TreeView Table control (simply select the name of one of the columns).
Table and TreeView Table controls, as well as their columns, share most of their characteristics.
WINDEV TreeView Table control fields offer the following option: "Expandir haciendo clic en la fila". If this option is checked, the hierarchy can be expanded by clicking on the row (and not only on the expand icon).
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:
  1. Open the TreeView Table control description window.
  2. 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:
For more details on how to manipulate TreeView Table controls programmatically, see Manipulating TreeView Table controls programmatically.
Vocabulary
To easily handle a TreeView Table control, you must be familiar with the following vocabulary:
NameDefinition
Selection barUsed to view the selected element. A specific color is used in most cases.
BranchPart 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.
ElementGeneric name corresponding to the contents of a tree: Root, Node or Leaf are elements of a tree structure in a hierarchical table
LeafLast element of the tree structure. There are no lower levels.
NodeIntermediate 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.
RootFirst 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:
  1. Select the TreeView Table control to transform.
  2. On the "Modificación" tab, in the "Transformaciones" group, expand "Refactorización y permutaciones" and select "Table / TreeView Table".
Versión mínima requerida
  • Versión 11
Esta página también está disponible para…
Comentarios
Video TreeView Table Control
https://youtu.be/YVpI0kagEN8

https://windevdesenvolvimento.blogspot.com/2018/12/dicas-1972-publica-windev-tabela-87.html


amarildo
06 04 2019
Video TreeView
https://youtu.be/uRfh6Xhu8u0
amarildo
15 07 2018

Última modificación: 01/05/2025

Señalar un error o enviar una sugerencia | Ayuda local