Gets the text set in the menu item. Gets the current input date if the specified menu item is the input field.

Syntax

char *AM_GetText(
  MENU_HANDLE menu,
  int id
);

Parameters

menu
[in] Menu handle
id
[in] Item ID of menu item.

Return value

Returns the text set in the menu item specified by id.

Remarks

If the value of showControl of the AM_MenuItem structure of the menu item is AM_TEXT_EDIT, returns the input buffer specified by Value in the AM_EditParam structure. This buffer contains the current input data.

If the value of showControl of the AM_MenuItem structure of the menu item is AM_BMPFILE, returns a pointer to the name of the BMP file set in menuText of the AM_MenuItem structure.

If the value of showControl of the AM_MenuItem structure of the menu item is other than the above, returns a pointer to the display string.

Requirements

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

Last updated: 2020/10/09