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
  • Format of collapsed/expanded images
  • Type of collapsed/expanded images
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
Modifies an element (node or leaf) in a TreeView control.
Example of TreeView control:
Vocabulary linked to a TreeView control
Ejemplo
// Modify the caption of "Desserts" node in the "TREE_TVRecipe" TreeView control
Res = TREE_TVRecipe.Modify("Recipes" + TAB + "Desserts", "Ice creams")
// Modify the root image in the "TREE_TVRecipe" TreeView control
Res = TREE_TVRecipe.Modify("Recipes", Null, ...
"C:\MyImages\Img1.GIF", "C:\MyImages\Img2.GIF")
Sintaxis
<Result> = <TreeView control>.Modify(<Path of element to modify> , <New caption> [, <New collapsed image> [, <New expanded image> [, <New element identifier> [, <Tooltip text>]]]])
<Result>: booleano
  • True if the element was modified in the TreeView control,
  • False otherwise.
<TreeView control>: Nombre del control
Name of the TreeView control to be used.
<Path of element to modify>: Cadena de caracteres
Full path of element to modify. This parameter has the following format:
"<Root name>" + TAB + ["<Name of 1st node>" + TAB + ...
["<Name of 2nd node>" + TAB + [...]]]"<Leaf name>"
<New caption>: Cadena de caracteres
  • New caption for the specified element,
  • NULL constant to keep the existing caption.
<New collapsed image>: Cadena de caracteres opcional o constante
New image associated with the specified element. This image is displayed when this element is collapsed (see the Remarks). This parameter corresponds to:
  • the name and full (or relative) path of image. A UNC path can be used.
  • the constant:
    NullStores the image of specified element
    tvDefault
    (Default value)
    Default image (closed folder): Closed folder
<New expanded image>: Cadena de caracteres opcional o constante
New image associated with the specified element. This image is displayed when this element is expanded (see the Remarks). This parameter corresponds to:
  • the name and full (or relative) path of image. A UNC path can be used.
  • the constant:
    NullStores the image of specified element
    tvDefault
    (Default value)
    Default image (opened folder): Open folder
<New element identifier>: Cadena de caracteres o entero (opcional)
New identifier of element or the NULL constant to keep the identifier of specified element.
Attention: The Tab character (TAB) is forbidden in element identifiers.
<Tooltip text>: Cadena de caracteres opcional
If this parameter is specified, its content will be displayed in a tooltip when the element is hovered by the mouse cursor. This parameter corresponds to an empty string by default. If no tooltip is associated with the element, the tooltip associated with the TreeView control will be automatically displayed.
Observaciones

Format of collapsed/expanded images

Type of collapsed/expanded images

The images used can be:
The specified image is scaled down to 16 x 16 pixels: in most cases, the height of the image corresponds to the height of the line in the TreeView control.
Note We recommend using 16 x 16 pixel images (size of small icons).
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: 06/12/2024

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