PC SOFT

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.
  • Presentación
  • Inicialización de una control ListView
  • Initializing an element
  • Filling a ListView control
  • Selección de un elemento en una control ListView
  • Recuperar el elemento seleccionado en el control ListView
  • Retrieving the subscript of selected element
  • Retrieving the value of selected element
  • Propiedades específicas para la gestión de los controles ListView
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
Manejo de una control ListView por programación (sintaxis prefijada)
Presentación
WINDEV allows you to handle a ListView control by programming. To do so, use the variable of ListView control in the code. This variable is a numeric variable.
The variable of ListView control:
  • corresponds to the name of ListView control.
  • is initialized with the subscript of the element selected in the Listview.
Note: To handle a ListView element not associated with any stored item, use the following syntax:
<ListView control name> [ <Element subscript>]
Inicialización de una control ListView

Initializing an element

To initialize an element found in a ListView control, use <List Box>.Add.

Filling a ListView control

To initialize a ListView control, an iteration loop must be used to initialize all control elements.
Selección de un elemento en una control ListView
Recuperar el elemento seleccionado en el control ListView

Retrieving the subscript of selected element

To retrieve the subscript of selected element, use:
  • the direct reading of element:
    Subscript = <ListView control name>
Note: For multiselection ListView controls, <List Box>.Select is used to retrieve the selected elements.

Retrieving the value of selected element

To retrieve the value of selected element, use one of the following syntaxes:
  • Syntax 1:
    Subscript is int = <ListView control name>
    <Variable> = <ListView control name>[Subscript]
  • Syntax 2:
    <Variable> = <ListView control name>[<ListView control name>]
  • Syntax 3: ..DisplayedValue
    <Variable> = <ListView control name>..DisplayedValue

    Caution: The value stored in programming can differ from the displayed value. To find out the stored value corresponding to one of the rows found in the ListView control, use ..StoredValue.
Propiedades específicas para la gestión de los controles ListView
The following properties are used to manage the ListView controls:
Any type of listview
MemoryAllows you to find out whether the specified control is a memory or browsing ListView control.
ListViewModeChanges the display mode of the ListView control (listview mode, list box mode, panorama mode).
CountAllows you to find out the number of rows found in a ListView control.
VerticalOrientationAllows you to find out and modify the orientation of a ListView control.
FillTypeAllows you to find out how a ListView control is filled (file, memory, variable).
DisplayedValueAllows you to find out the value of the current row or the value of a specific row in the ListView control.
EmptyAllows you to find out whether a ListView control is empty.
Memory listviews only
SortedAllows you to find out whether a memory ListView control is sorted and to sort a memory ListView control (according to the captions of the elements).
Browsing listviews only
BrowsedFileAllows you to find out and modify the file or the query used to display records in the browsing listviews.
AutoBrowseAllows you to find out whether a browse performed in a browsing ListView control is an automatic browse or a programmed browse.
DisplayedItemAllows you to identify or modify the item corresponding to the caption displayed in a ListView control.
DisplayedItemImageAllows you to find out and modify the item corresponding to the image displayed in a ListView control.
StoredItemAllows you to find out and modify the stored item of a ListView control.
BrowsedItemAllows you to find out and modify the item used for the automatic browse of ListView controls.

To find out the entire list of WLanguage properties that can be used with a ListView control, see Properties associated with the ListView control.
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