ListBox

ListBoxGetTopItem

Return the position of the first item in the list viewport

Syntax

Signature
int          ListBoxGetTopItem( const ListBox *listBox );

Return value

The stored one-based position of the first item, or 0 if the list is empty or the object is NULL.

Description

This is the item position used when the item area is drawn. Use `ListBoxGetBuffer()` to read the selected position.

See also