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 / Desarrollar una aplicación o un sitio web / Controles, ventanas y páginas / Controles: tipos disponibles / Control ListView
  • Overview
  • Initialization code of a programmed ListView control
  • HFSQL thumbnails
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
ListView control linked to a data file (or to a query)
Overview
A ListView control can be used to display the content of a data file (or the content of a query).
When a ListView control is linked to a data file (or to a query), this control can be initialized with the content of the data file:
  • or automatically: No specific code is required to initialize the ListView control.. The options to loop through the data file linked to the control can be defined in the "Content" tab of the control description.
  • or by programming: you need to enter the path code of the data file linked to the List Box control in the field initialization code.. This method is not recommended.
The content of two different items is displayed in the ListView control:
  • an item corresponding to the captions ("Text" item for example).
  • an item corresponding to the images ("Sound, Image, Binary" item for example).
Remark: When creating a ListView control, the wizard offers to create the different types of image lists. For a ListView control linked to a data file or to a query, the wizard asks for the necessary information (data file used, items used, etc.).
Initialization code of a programmed ListView control
If you are using a ListView control based on a data file with programmed initialization, the code for browsing the data file must be entered in the initializing code of the control.
Example: Initializing a ListView control with photographs from the VOYAGE data file..
// -- Initialization code of ListView control
HReadFirst(TRAVEL, Photo)
WHILE NOT HOut()
	ListAdd(LSV_TravelPhoto, TRAVEL.Photo)
	HReadNext(TRAVEL, Photo)
END
HFSQL thumbnails
The item linked to the images displayed in the ListView control can use HFSQL thumbnails. In this case, the display of images will be optimized.
For more details, see HFSQL thumbnails.
Ver también
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: 05/12/2024

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