SetMenuExitButton Function

Sets whether or not the menu has an exit button. By default, paginated menus have an exit button.

If a menu's pagination is changed to MENU_NO_PAGINATION, and the pagination was previously a different value, then the Exit button status is changed to false. It must be explicitly re-enabled afterwards.

If a non-paginated menu has an exit button, then at most 9 items will be displayed.

bool SetMenuExitButton(Handle menu, bool button)

Parameters

Handle menu

Menu Handle.

bool button

True to enable the button, false to remove it.

Return Value

True if allowed; false on failure.

Errors

Invalid Handle.