Define the screen using the structures provided by the AdvancedMenu library.

Color palettes

Defines color palettes that specify various colors used on the screen.
A color palette includes:
  • Character color and background color
  • Character color and background color of focused text
  • Display color of icons and other controls
Define multiple color palettes with an array of AM_ColorPalette structures. When specifying a color, specify it with the index number of this array (reffered to as palette index).

Options

Define options related to common items on the screen.
Options include:
  • Default value of character color and background color.
  • Character color of disabled menu items.
  • Refernce to the color palettes.
  • Default font.
  • Default number of pixels between lines.
  • Other options.
Options are defined in the AM_Option structure.
The content of each item displayed on the screen is defined by a menu item.
A menu item includes:
  • Item ID: ID used to specify this item.
  • Coordinates (row/column or pixel coordinates)
  • String to display
  • Palette index
  • visible attribute: Specify whether to display
  • enabled attribute: Specify whether to enable.
  • selectable attribute: Specify whether to have focus.
  • Specify check box and radio button
  • Specify icon
  • For input field, refrence to the input buffer and input operations. (AM_EditParam structure)
  • For image item, name of the BMP file.
  • Font
  • Other
Define multiple menu items contained in one screen as an array of AM_MenuItem structures. When specifying each menu item, specify it by the item ID (id member of the AM_MenuItem structure).

Last updated: 2020/10/09