Sets the text of the menu item. You can specify whether to clear the current display before updating the display.

Syntax

bool AM_SetTextEx(
  MENU_HANDLE menu,
  int id,
  char *text,
  bool ClearItem
);

Parameters

menu
[in] Menu handle
id
[in] Item ID of menu item.
text
[in] A pointer to a character string.
ClearItem
[in] Specify true to clear the original display before updating it, false otherwise.

Return value

Returns true if the function succeeds, false otherwise.

Remarks

This function has the same specifications as the AM_SetText function except that it has a ClearItem parameter.
The AM_SetText function clears the menu item display before changing the display data. On the other hand, with this function, you can specify whether to clear the display with the ClearItem parameter.

Requirements

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

Last updated: 2020/10/09