To easily handle a list box, you must be familiar with the following vocabulary:
|Selection bar||Used to view the selected element. A specific color is used in most cases.|
|Vertical scroll||Scroll 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 box||The 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 box||The 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 box||The user can select a single element in the list.|
|Multi-selection list box||The 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 source||The list box is based on a variable (global to the project, to the window or to the page, class member, ...).|