PC SOFT

WINDEV的在线文档

  • Overview of the List Box control
  • Creating a List Box control
  • Vocabulary
  • Notes
文档页面当前正在翻译。对于此延迟我们深表歉意。
您可以自愿地帮助我们翻译您想要的文档段落,然后只需通过以下地址与我们联系: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本地访问

Overview of the List Box control
The List Box control is used to display a list of elements and to select one or more elements in this list.

The list is expanded, which means that several elements of the list are displayed in the window or in the page.

16版本和更高版本
WinDevLinux The List Box controls are now available for the WinDev applications in Linux.
16新版本
WinDevLinux The List Box controls are now available for the WinDev applications in Linux.
WinDevLinux The List Box controls are now available for the WinDev applications in Linux.
18版本和更高版本
WinDevWindows Store apps The List Box controls are now available for the applications in Windows Store apps mode.
18新版本
WinDevWindows Store apps The List Box controls are now available for the applications in Windows Store apps mode.
WinDevWindows Store apps The List Box controls are now available for the applications in Windows Store apps mode.

WinDev The following list boxes are available in WinDev and WinDev Mobile:

Text list box
List box combining images and text.
Graphic multi-column list box used to easily select a color

These elements can:
  • be defined when the control is created in the editor.
  • be defined by programming.
  • come from a data file or from a query.
  • come from a variable (global to the project, to the window or to the page, class member, ...).
WinDev You also have the ability to draw in the list boxes or to display an image with the drawing functions specific to the list boxes.

Creating a List Box control
To create a List Box control:
  1. In the window editor, click(or select "Insertion .. Control .. List box").On the "创建" pane, in the "数据" group:
    • WinDev expand "Table and list box" and click "List box".
  2. Click the position where the control must be created in the window. The wizard for creating a List Box control starts.
To display the characteristics of the control, select "Description" from the popup menu of the control.

Vocabulary
To easily handle a list box, you must be familiar with the following vocabulary:
NameDefinition
Selection barUsed to view the selected element. A specific color is used in most cases.
Vertical scrollScroll direction of the list box.
A vertical scrollbar is automatically displayed if the number of elements displayed in the list exceeds the number of visible elements.
If the size of an element is greater than the width of the list, this element will be truncated. No horizontal scrollbar is automatically displayed.
Browsing list boxThe list box is based on a data file or on a query. The elements of the list box correspond to the records of the data file. Two types of browsing list boxes are available:
  • Browsing list box "Loaded in memory" : the content of the list box is loaded in memory then it is displayed. The access to the different elements of the list box is faster. This mode is reserved for the data files containing less than 100 000 records.
  • Browsing list box in "Direct access mode (no limit)": The list box displays the content of the data file or the content of the query. The current record corresponds to the selected element. Each move in the list box involves an access to the linked file. This type of list box is reserved for the data files containing more than 100 000 records.
Memory list boxThe list box is not based on a data file or on a query. The elements displayed in the list box are defined by the developer (in the description window or by programming)
Single-selection list boxThe user can select a single element in the list.
Multi-selection list boxThe user can select several elements at the same time in the list.
To select several elements, the user must:
  • select the elements 1 by 1 while keeping the [Ctrl] key down.
  • select several consecutive elements at the same time while keeping the [Shift] key down.
List box on sourceThe list box is based on a variable (global to the project, to the window or to the page, class member, ...).

Notes