PC SOFT

AYUDA EN LÍNEA
DE WINDEV, WEBDEV Y WINDEV MOBILE

Este contenido proviene de una traducción automática.. Haga clic aquí para ver la versión original en inglés.
  • "Sibling" node
  • Duplicates
  • Format of collapsed/expanded images
  • Type of collapsed/expanded images
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReportes y ConsultasCódigo de Usuario (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Código Navegador
WINDEV Mobile
AndroidWidget Android iPhone/iPadApple WatchUniversal Windows 10 AppWindows Mobile
Otros
Procedimientos almacenados
Inserts a leaf into a TreeView control at a specific position. This insertion is performed in relation to an existing "sibling" element.
Example of TreeView control:
Vocabulary linked to a TreeView control
Ejemplo
Sintaxis
<Result> = <TreeView control>.Insert(<Path of sibling node> , <Leaf name> [, <Collapsed image> [, <Expanded image> [, <Leaf identifier> [, <Add mode> [, <Tooltip text>]]]]])
<Result>: Boolean
  • True if the leaf was inserted into the TreeView control,
  • False otherwise.
<TreeView control>: Control name
Name of TreeView control to use.
<Path of sibling node>: Character string
Full path of "sibling" node of leaf that will be inserted into the TreeView control. This sibling node must exist. This parameter has the following format:
"<Name of root>" + TAB + ["<Name of 1st node>" + TAB + ...
["<Name of 2nd node>" + TAB + [...]]]"<Leaf name>"
In case of duplicates on a path element, this path can contain the element identifier (specified at the end of its name by TreeID).
<Leaf name>: Character string (with quotes)
Name (caption) of leaf to insert.
<Collapsed image>: Character string (with quotes) or optional constant
Image associated with the inserted element. This image is displayed when the element is a collapsed node (see the Notes). At run time, the caption of a collapsed node is preceded by "+".
This parameter corresponds to:
  • the name and full (or relative) path of image. A UNC path can be used.
  • the constant:
    tvDefault
    (Default value)
    Default image (closed folder): Closed folder
    NullNo image
<Expanded image>: Character string (with quotes) or optional constant
Image associated with the inserted element. This image is displayed when the element is an expanded node (see the Notes). At run time, the caption of an expanded node is preceded by "-".
This parameter corresponds to:
  • the name and full (or relative) path of image. A UNC path can be used.
  • the constant:
    tvDefault
    (Default value)
    Default image (opened folder): Opened folder
    NullNo image
<Leaf identifier>: Character string (with quotes) or optional integer
Character string or integer associated with the inserted element. This parameter corresponds to an empty string ("") by default. To associate an identifier with an element that is already created, use <Modificar.
<Add mode>: Optional constant
Position of inserted leaf in relation to the "sibling" node in the TreeView control.
tvAfter
(Default value)
The leaf is inserted after the specified "sibling" element.
tvBeforeThe leaf is inserted before the specified "sibling" element.
<Tooltip text>: Optional character string (with quotes)
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

"Sibling" node

The insertion is not performed if the "sibling" node does not exist: <Insertar returns False.

Duplicates

<Insertar does not check the duplicates when an element is inserted.
To easily manage the duplicates, a specific identifier should be used to identify the level where the insertion must be performed. See Managing duplicates in the TreeView controls for more details.

Format of collapsed/expanded images

WINDEV Los siguientes formatos de imagen son compatibles con Windows:
  • Mapa de bits (*.BMP)
  • Formato de intercambio de gráficos (*.gif)
  • Grupo Mixto de Expertos en Fotografía (*.jpg *;.jpeg)
  • CD de fotos Kodak (*.pcd)
  • Pincel de pintura (*.pcx)
  • Formato Adobe Photoshop (*.psd)
  • TrueVision TARGA (*.tga)
  • Etiquetado Image Formato de archivo (* .tif; * .tiff)
    señalar: la opción "tiff tiff" del estándar tiff 6.0 no está soportada. En este caso, le aconsejamos que guarde la imagen en tiff 5.0 standard.
  • Gráficos de red portátiles (*.png)
  • MetaFicheros de Windows (*.emf;*.wmf)
  • Iconos (*.ico *;.icw)
    Versiones 22 y posteriores
    comentario:
    • Pantalla HQ (High Quality) disponible.
    • Gestión de hojas en formato BMP transparente (32 bits).
    Nueva funcionalidad versión 22
    comentario:
    • Pantalla HQ (High Quality) disponible.
    • Gestión de hojas en formato BMP transparente (32 bits).
    comentario:
    • Pantalla HQ (High Quality) disponible.
    • Gestión de hojas en formato BMP transparente (32 bits).
  • Cursores (*.cur)
  • Formato portátil de Document (*.pdf)
  • Versiones 15 y posteriores
    Gráficos vectoriales escalables (*.svg)
    Nueva funcionalidad versión 15
    Gráficos vectoriales escalables (*.svg)
    Gráficos vectoriales escalables (*.svg)
  • Versiones 22 y posteriores
    Imágenes WINDEV (generadas por el editor de imágenes, *.WDPIC).
    Nueva funcionalidad versión 22
    Imágenes WINDEV (generadas por el editor de imágenes, *.WDPIC).
    Imágenes WINDEV (generadas por el editor de imágenes, *.WDPIC).
Nota: Para gestionar los formatos pdf y svg, GDIPLUS.DLL debe estar instalado en los ordenadores con Windows 2000 y anteriores.. Para las versiones posteriores, esta DLL se suministra con Windows. Ver GDI+ framework para más detalles.
Windows Mobile The recognized image formats are as follows: BMP, JPEG, GIF or ICO.
WEBDEV - Código Servidor The recognized image formats are as follows: GIF, JPEG, PNG or SVG (depending on the browsers).

Type of collapsed/expanded images

The images used can be:
The specified image is proportionally resized to 16 x 16 pixels: in most cases, the height of the image corresponds to the height of TreeView row.
WEBDEV - Código Servidor Only the image files can be used. These files must be found in the "<ProjectName>_WEB" directory. These images are not transformed when the page is saved. There is no need to use fWebDir to specify the image path. This path is relative to the "<ProjectName>_WEB" directory.
Note: The size of images should be set to 16 x 16 pixels (size of small icons).
Componente : wd250obj.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