Syntax
xBool ListBoxDelItem( ListBox *listBox, int position );
Arguments
listBox the list box.
position the one-based position of an existing item.
Return value
T on success, or F if the object is NULL or position is outside the item list.
Description
Items after the removed item shift one position earlier. Deleting an item before the selection preserves the selected item at its new position. Deleting the selected item selects the item that takes its place, or the new last item when the selected item was last.
The selected position and first visible position become `0` when the list becomes empty. Deletion synchronizes the scroll bar. Call `ListBoxDisplay()` to redraw.