MenuItem

MenuItemSetPopUp

Set the submenu opened when the item is selected

Syntax

Signature
xBool         MenuItemSetPopUp( MenuItem *item, PopUpMenu *popUp );

Arguments

item the menu item to change.

popUp the submenu to attach. NULL is invalid.

Return value

T on success, or F if the object is NULL, popUp is NULL or the item is a separator.

Description

On success the item owns `popUp` and clears its block. Replacing a different submenu releases the old one. Passing the submenu already attached keeps it. On failure the caller retains ownership of the supplied submenu.

See also