Sets the checked attribute of the list item.

Syntax

bool AL_SetChecked(
  LIST_HANDLE list,
  int index,
  bool checked
);

Parameters

list
[in] List handle
index
[in] Index number of the list 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 list item specified by index and update the display.

The checked attribute of the list item is used for the list item that has checkboxe or radio button.
If the checked attribute is set to true, it will be displayed in the checked state, and will be updated to the unchecked state otherwise.

The value set in the checked attribute of the list item can be obtained with AL_IsChecked function.

Requirements

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

See also

Last updated: 2020/10/09