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
  • Node to collapse
  • Selection bar
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
Collapses a branch previously expanded. The "child" nodes are no longer visible in the TreeView control. Child nodes remain in their previous status (collapsed or expanded).
Example of TreeView control:
Vocabulary linked to a TreeView control
Reminder At runtime, a node is wrapped when the "+" sign precedes the node name.
Ejemplo
// Collapse the "Desserts" node in the "TREE_TVRecipe" TreeView control
Res = TreeCollapse(TREE_TVRecipe, "Recipes" + TAB + "Desserts")
Sintaxis
<Result> = TreeCollapse(<TreeView control> , <Node to collapse>)
<Result>: Boolean
  • True if the node was collapsed,
  • False otherwise.
<TreeView control>: Control name
Name of the TreeView control to be used.
<Node to collapse>: Character string
Path of the node to collapse. 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

Node to collapse

If the node to collapse:
  • is not found, TreeCollapse returns False.
  • is a leaf, TreeCollapse returns True.
  • is already collapsed, TreeCollapse returns True.

Selection bar

  • If the selection bar was positioned on one of the elements of the node to collapse, it is positioned on the collapsed node after the call to TreeCollapse.
  • The modification code is called whenever the selection bar is moved. If two levels are collapsed and if the selection bar is positioned on the higher node, the modification codes of each level are run.
  • The full path of the selected element is returned by TreeSelect.
Componente: wd300obj.dll
Versión mínima requerida
  • Versión 9
Esta página también está disponible para…
Comentarios
Haga clic en [Agregar] para publicar un comentario

Última modificación: 27/03/2025

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