4D v14.3Overview |
||
|
4D v14.3
Overview
Overview
List boxes are complex active objects that allow displaying and entering data as synchronized columns. They have the same basic features as “grouped scrollable areas,” as well as new expanded possibilities (value entry, column sorting, customized appearance, moving of columns, etc.). A list box type object can be completely set using the 4D Form editor and can also be handled programmatically. This chapter details the principles related to the creation and configuration of list box type objects in the Form editor. For more information on the programmed management of these objects, refer to List Box of the 4D Language Reference manual. There are two types of list boxes: selection type list boxes and array type list boxes.
It is not possible to combine columns associated with fields (or expressions) and columns associated with arrays in the same list box. A list box contains one or more columns whose contents are automatically synchronized. By default, when you create a list box, it contains a single column. You can modify the number of columns (add, duplicate, or delete a column) using the context menu (click on a column or column header) or in the list box properties. The number of columns is, in theory, unlimited (it depends on the machine resources). A list box is composed of four distinct parts: the list box object in its entirety, columns, column headers and column footers. In the Form editor, these parts can also be selected separately. Each part has its own object and variable name as well as specific properties. For example, the number of columns or the alternating color of each row is set in the list box object properties, the width of each column is set in the column properties, and the font of the header is set in the header properties. Note: In selection type list boxes, columns do not have a variable name. You can display an array type list box either in standard mode or in hierarchical mode. List boxes displayed in hierarchical mode use specific mechanisms that are described below. During execution, list boxes allow displaying and entering data as lists. Note: For more information, refer to Managing entry in the 4D Language Reference manual. You can enter and display the text on several lines within a list box cell. To add a line return:
Note that the height of the rows is not resized automatically. It is possible to sort column values by clicking on a header (standard sort). The sort is alphanumerical and alternately ascending/descending on multiple clicks. All columns are automatically synchronized. Note: For more information, refer to Managing sorts in the 4D Language Reference manual. It is also possible to resize each column:
Note: In selection type list boxes, it is not possible to change the order of the rows by moving them with the mouse. Finally, the user can select one or more rows using the standard shortcuts: Shift+click for an adjacent selection and Ctrl+click (Windows) or Command+click (Mac OS) for a non-adjacent selection. All these characteristics can be handled using the list box, column, header and footer properties. They are detailed in the following sections. Note: The specific characteristics of list boxes used in hierarchical mode are described in Creating and using hierarchical list boxes. List boxes can be printed in forms in "preview" mode (printing a picture of the list box area) or in "advanced" mode (dynamic printing in variable size). For more information, refer to Printing list boxes in the 4D Language Reference manual. |
PROPERTIES
Product: 4D ARTICLE USAGE
4D Design Reference ( 4D v14 R2) Inherited from : Overview ( 4D v13.4) |