ListBox

ListBoxGetText

Return the display text of a list item

Syntax

Signature
const char  *ListBoxGetText( const ListBox *listBox, int position );

Arguments

listBox the list box.

position the one-based position of an existing item.

Return value

The stored text, or NULL if position is outside the item list or the object is NULL.

Description

The list owns the returned string. Its lifetime ends when the text is replaced, the item is removed or the list is freed. Use `ListBoxGetBuffer()` to get the selected item's position.

See also