Listbox size

width = integer

The width of the listbox. From Sculptor 5 onwards, the width may be expressed in pixels or in columns; the !chargrid declaration specifies which sizing method is in use. In earlier versions columns must be used. See Pixel and character positioning.

Default: 16 characters. If pixel positioning is in use a default width is calculated based on the average width of 16 characters in the listbox’s data font.

rows = integer

The number of rows required in the listbox window. Note that this only limits the number of visible lines. The number of lines which may be assigned to a listbox is limited only by available memory. If the number of lines exceeds the number of rows, the listbox window is automatically given a vertical scroll bar.

Default: 1.

The default height of a LIST_BUTTON or LIST_EDIT listbox can be changed by means of the style flag WS_COMPACT. See Listbox style.


RELATED TOPICS

Listboxes