ListBox

ListBoxNextItem

Select the next item in a focused list box

Syntax

Signature
xBool        ListBoxNextItem( ListBox *listBox );

Arguments

listBox the list box.

Return value

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

Description

The next item follows the current selection. With no selection, the function selects the first item. It returns `T` immediately when the list is empty or unfocused, or the last item is already selected. When the selection changes, the function brings it into view, redraws the list and calls the selection callback if set.

See also