Set the checked attribute of the menu item.

Syntax

bool AM_SetChecked(
  MENU_HANDLE menu,
  int id,
  bool checked
);

Parameters

menu
[in] Menu handle
id
[in] Item ID of menu item.
checked
[in] Specify true to enable the checked attribute, false otherwise.

Return value

Returns true if the function succeeds, false otherwise.

Remarks

Change the checked attribute of the menu item specified by id and update the display.
The checked attribute of the menu item is used for the menu item that has checkboxe or radio button.
If checked attribute is set to true, it will be displayed in the checked state, and will be updated to the unchecked state otherwise.

Requirements

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

Last updated: 2020/10/09