Specifies how to display the focus.

Syntax

void AM_SelectLine(
  MENU_HANDLE menu,
  int id
);

Parameters

menu
[in] Menu handle
id
[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

Displays the focus according to the value specified by id.

Requirements

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

Last updated: 2021/08/23