ListBox

ListBoxGetBuffer

Return the position of the selected list item

Syntax

Signature
int          ListBoxGetBuffer( const ListBox *listBox );

Return value

The one-based position of the selected item, or 0 if no item is selected or the object is NULL.

Description

Use `ListBoxSelect()` to select an item by position and `ListBoxGetTopItem()` to read the first item in the visible list.

See also