PC SOFT

WINDEV的在线文档

  • Overview
  • Initialization code of a programmed ListView control
  • HFSQL thumbnails
文档页面当前正在翻译。对于此延迟我们深表歉意。
您可以自愿地帮助我们翻译您想要的文档段落,然后只需通过以下地址与我们联系:info@cn.windev.com
产品
WinDevWebDev-服务器代码WebDev-浏览器代码WinDev Mobile报表和查询
平台
WindowsLinuxWindows MobileWindows PhoneWindows Store appsAndroidAndroid Widget iPhone/iPad
语言
JavaPHPAjax用户代码(MCU)外部语言
数据库
HFSQLHFSQL Client/Server存储过程HF 5.5OLE DBODBC本地访问

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:

  • automatically: No specific code is required to initialize the ListView control. The characteristics of the browse performed in the data file linked to the control are described in the "Content" tab of the control description.
  • by programming: The code used to browse the data file linked to the ListView control must be entered in the initialization code of the control. 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).

Note: When creating a ListView control, the wizard proposes to create the different types of listviews. For a ListView control linked to a data file or to a query, the wizard asks for the necessary information (file used, items used, ...).

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 the photographs found in the TRAVEL file.

// -- Initialization code of ListView control
H读第一个TRAVELPhoto
只要不H超出()
列表添加LSV_TravelPhotoTRAVEL.Photo
H读下一个TRAVELPhoto
结束

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.

See HFSQL thumbnails for more details.

Note: From version 19, HFSQL is the new name of HyperFileSQL.