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 / WLanguage / Funciones WLanguage / Controles, páginas y ventanas / Funciones TreeView
  • Displaying an element at the start of the TreeView control (syntax 2)
  • Selecting an element at row
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
Displays a TreeView control from a specified element (node or leaf) or returns the name of the first element displayed in a TreeView control.
Example of TreeView control:
Vocabulary linked to a TreeView control
Ejemplo
// Name of first element displayed in the "TREE_TVRecipe" TreeView control
ResElementName = TREE_TVRecipe.Position()
Sintaxis

Averiguar el nombre del primer elemento mostrado en un control TreeView Ocultar los detalles

<Result> = <TreeView control>.Position([<Duplicate identifier>])
<Result>: Cadena de caracteres
Full path of first element displayed in the TreeView control.
This result has the following format:
"<Root name>" + TAB + ["<Name of 1st node>" + TAB + ...
["<Name of 2nd node>" + TAB + [...]]]"<Leaf name>"
If there are two elements with the same name in the path, you can add the IDs of the elements (after their names using TreeID).
<TreeView control>: Nombre del control
Name of the TreeView control to be used.
<Duplicate identifier>: Booleano opcional
Specifies the management mode of duplicates in the elements of <Result>:
Java This parameter is ignored.

Visualización de un control TreeView a partir de un elemento especificado Ocultar los detalles

<Result> = <TreeView control>.Position(<Node path>)
<Result>: Cadena de caracteres
Full path of the first element displayed in the TreeView control after the call to <TreeView>.Posición.
This result has the following format:
"<Root name>" + TAB + ["<Name of 1st node>" + TAB + ...
["<Name of 2nd node>" + TAB + [...]]]"<Leaf name>"
<TreeView control>: Nombre del control
Name of the TreeView control to be used.
<Node path>: Cadena de caracteres
Full path of the node that will be displayed in first position in the TreeView control.
This parameter has the following format:
"<Root name>" + TAB + ["<Name of 1st node>" + TAB + ...
["<Name of 2nd node>" + TAB + [...]]]"<Leaf name>"
If there are two elements with the same name in the path, you can add the IDs of the elements (after their names using TreeID).
Observaciones

Displaying an element at the start of the TreeView control (syntax 2)

The element displayed first may differ from the one requested. Indeed, if there are not enough elements displayed below the <Node Path> element, this element cannot be displayed at the beginning of TreeView control
For example, the "Cold inputs" node can't be displayed at the beginning of the TreeView control: there aren't enough elements displayed below this node.
Element displayed first

Selecting an element at row <Index>

To select the element at row <Index>, use:
  • direct assignment:
    <TreeView control> = Index
    If the row is displayed in the TreeView control, the corresponding element is selected.
  • the <TreeView>.SelectPlus function:
    <TreeView control>.SelectPlus(<Full element path>)
Componente: wd300obj.dll
Versión mínima requerida
  • Versión 23
Esta página también está disponible para…
Comentarios
Haga clic en [Agregar] para publicar un comentario

Última modificación: 30/09/2024

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