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 expand
  • 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
Expands a node and all its child elements in a TreeView control.
Example of TreeView control:
Vocabulary linked to a TreeView control
Reminder At runtime, a node is unrolled when the "-" sign precedes the node name.
Ejemplo
// Expand the "Desserts" node in the "TREE_TVRecipe" TreeView control
// All child elements are also expanded
Res = TREE_TVRecipe.ExpandAll("Recipes" + TAB + "Desserts")
Sintaxis
<Result> = <TreeView control>.ExpandAll([<Node to expand>])
<Result>: booleano
  • True if the node and its child elements have been expanded,
  • False otherwise.
<TreeView control>: Nombre del control
Name of the TreeView control to be used.
<Node to expand>: Cadena de caracteres opcional
Path of the node to expand (as well as its child elements). This parameter has the following format:
"<Root name>" + TAB + ["<Name of 1st node>" + TAB + ...
["<Name of 2nd node>" + TAB + [...]]]"<Leaf name>"
If this parameter is not specified, the TreeView control is expanded from the root.
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 expand

If the node to expand:
  • is not found, <TreeView>.ExpandAll returns False.
  • is not specified, <TreeView>.ExpandAll returns True and the TreeView control is expanded from its root.
  • is a leaf, <TreeView>.ExpandAll returns True.
  • is already expanded, <TreeView>.ExpandAll returns True, and the child elements are expanded if necessary.
  • is not visible, <TreeView>.ExpandAll makes this node visible. Its "parent" and "sibling" elements are also displayed. The "parent" elements are expanded.
When <TreeView>.ExpandAll is called, if the specified branch and/or one of its children have a procedure associated via the AddChildDelayed property, this procedure will be executed.

Selection bar

<TreeView>.ExpandAll does not change the position of the selection bar.
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