Syntax
xBool MenuItemSetBlock( MenuItem *item, MenuItemBlock block );
Arguments
item the menu item to change.
block a C function that receives the item when selected. NULL is invalid.
Return value
T on success, or F if the object is NULL, block is NULL or the item is a separator.
Description
Setting a block releases any submenu owned by the item. The callback can read application data with `MenuItemGetCargo()`.