Sets the text of the menu item.

Syntax

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

Parameters

menu
[in] Menu handle
id
[in] Item ID of menu item.
text
[in] A pointer to a character string.

Return value

Returns true if the function succeeds, false otherwise.

Remarks

If the value of showControl of the AM_MenuItem structure that defines the menu item is AM_TEXT_EDIT, copy the character string specified by text to the input buffer specified by the Value member of the AM_EditParam structure and update the display.

If the value of showControl of the AM_MenuItem structure that defines the menu item is AM_BMPFILE, it just redisplays the currently set BMP file.

If the value of showControl of the AM_MenuItem structure that defines the menu item is other than the above, copy the character string specified by text to the display data in the menu resource and update the display.

In this function, the display of the menu item is cleared before changing the display data, and it is updated by displaying the new data.

Requirements

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

Last updated: 2020/10/09