Display the menu screen.

Syntax

void AM_ShowMenu(
  MENU_HANDLE menu,
  int defaultID
);

Parameters

menu
[in] Menu handle
defaultID
[in] One of the following values specifies how to display the focus.
ValueDescription
item ID If you specify a selectable menu item with the item ID specified in the AM_MenuItem structure, the focus moves to that menu item.
AM_SELECT_ANY_ID The focus is displayed on the first selectable menu item found in the menu. However, if the focus is already displayed on any of the menu items, the focus position is maintained.
AM_SELECT_NO_ID The focus is not displayed.

Return value

None.

Remarks

Display the menu screen according to the menu resource of the menu handle specified by menu, and displays the focus according to the value specified by defaultID.

Requirements

Header file:
lib.h
AdvancedMenu.h
Library file:
libAdvancedMenu.a
libSTARTUPOPH5000.a

See also

Last updated: 2021/08/23