PopUpMenu

PopUpDelItem

Remove and release an item from the menu

Syntax

Signature
xBool       PopUpDelItem( PopUpMenu *popUp, int position );

Arguments

popUp the pop-up 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 menu frees the removed item and any submenu it owns. The items after it shift up by one position.

If the removed item was current, the next selectable item becomes current. If the search reaches the end, the previous selectable item becomes current, or the current position becomes `0` if there is none. Deleting an earlier item preserves the current item and adjusts its position.

See also