Syntax
xBool TopBarDelItem( TopBarMenu *topBar, int position );
Arguments
topBar the top bar menu.
position the one-based position of the item to remove.
Return value
T on success, or F if the object is NULL or position is outside the item list.
Description
The bar frees the removed item and any submenu it owns. The items after it shift left by one position.
Deleting an item before the current one preserves the current item and adjusts its position. If the current item is removed, the next selectable item becomes current. If there is none after it, the previous selectable item becomes current. The position becomes `0` when no selectable item remains.