Specifies how to display the focus.

Syntax

void AL_SelectIndex(
  LIST_HANDLE list,
  int index
);

Parameters

list
[in] List handle
index
[in] One of the following values specifies how to display the focus.
ValueDescription
Index number of list item If you specify the index number of list item, the focus moves to that list item.
AM_SELECT_ANY_LINE The focus is displayed on the first list item. However, if the focus is already displayed on any of the list items, the focus position is maintained.
AM_SELECT_NO_LINE The focus is not displayed.

Return value

None.

Remarks

The focus is displayed according to the value specified by index. If the focused list item is outside the list area, the list is automatically scrolled until it enters the list area.

The index number of the list item that currently has the focus can be obtained with AL_GetSelectedIndex function.

Requirements

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

See also

Last updated: 2021/08/23