API Reference | developer.brewmp.com API Reference | developer.brewmp.com

Developer

API Reference

IMENUCTL_SETCOLORS()

Brew Release
Brew MP 1.0.2
Description
Allows the caller to override most of these settings for the menu control objects. By default, the color of menu elements are determined by entries in the system color table defined by the device manufacturer. These entries include:
 Entry                      Description
 ---------------------      -------------------------------------------
 CLR_SYS_ITEM               Background color of unselected items.
 CLR_SYS_ITEM_TEXT          Text color for unselected items and arrows.
 CLR_SYS_ITEM_SEL           Background color for selected items.
 CLR_SYS_ITEM_SEL_TEXT      Text color for selected items.
 CLR_USER_FRAME             Simple frame color.
 CLR_SYS_SCROLLBAR          Scrollbar frame color.
 CLR_SYS_SCROLLBAR_FILL     Fill color of scrollbar.
 CLR_SYS_TITLE              Background of title text.
 CLR_SYS_TITLE_TEXT         Color of title text.

Params
pIMenuCtl
[]:
pointer to the IMenuCtl interface object.
pc
[]:
pointer to the structure containing both a bitmask to indicate the item whose color needs to be changed, and the color values. AEEMenuColors Mask MC_TITLE and MC_TITLETEXT are supported for list control only.
Interface
  • IMENUCTL
Prototype
  •     void IMENUCTL_SetColors(IMenuCtl * pIMenuCtl, AEEMenuColors * pc);
    
Return
  • None
Side Effect
  • None.
Comments
Passing NULL to this function resets the menu colors. The caller cannot override the system settings for 3-D framed objects.