ListBox

ListBoxSetText

Replace the display text of a list item

Syntax

Signature
xBool        ListBoxSetText( ListBox *listBox, int position, const char *text );

Arguments

listBox the list box.

position the one-based position of an existing item.

text the UTF-8 item text to copy. NULL is invalid. An empty string is allowed.

Return value

T on success, or F if the object is NULL, text is NULL or position is outside the item list.

Description

The list copies the supplied text before releasing its previous copy. Call `ListBoxDisplay()` to draw the replacement text.

See also