ListBox

ListBoxDisplay

Draw the visible parts of the list box

Syntax

Signature
xBool        ListBoxDisplay( ListBox *listBox );

Arguments

listBox the list box.

Return value

T on success, or F if the object is NULL.

Description

A drop-down uses its top row to show the selected item's text or an empty field and the drop-down button. When the item area is open, the list draws its frame, the item rows beginning at `topItem` and the attached vertical scroll bar. The current focus and selection determine the item colors.

Item text is cut or padded to the available width on UTF-8 character boundaries. Unused rows are filled with spaces. The caption and its accelerator are drawn last, at the caption's own coordinates.

See also