how to set the background color of popmenu | developer.brewmp.com how to set the background color of popmenu | developer.brewmp.com

Developer

how to set the background color of popmenu

how to set the background color of popmenu ??

IWIDGET_SetBGColor(me->pIMenuWidget, MAKE_RGB(0,255,255));

IWIDGET_SetBGColor(me->pIMenuWidget, MAKE_RGB(0,255,255));

thank you .
I mean how to set the background color of items of popmenu.
using IWIDGET_SetBGColor(me->pIMenuWidget, MAKE_RGB(0,255,255)) only change the whole popmenu.
and I use IWIDGET_SetFGColor(me->pIMenuWidget, MAKE_RGB(0,255,255)) ,it does not work.
how can I do ?

thank you .
I mean how to set the background color of items of popmenu.
using IWIDGET_SetBGColor(me->pIMenuWidget, MAKE_RGB(0,255,255)) only change the whole popmenu.
and I use IWIDGET_SetFGColor(me->pIMenuWidget, MAKE_RGB(0,255,255)) ,it does not work.
how can I do ?

gooddeal wrote:thank you .
I mean how to set the background color of items of popmenu.
using IWIDGET_SetBGColor(me->pIMenuWidget, MAKE_RGB(0,255,255)) only change the whole popmenu.
and I use IWIDGET_SetFGColor(me->pIMenuWidget, MAKE_RGB(0,255,255)) ,it does not work.
how can I do ?
This function works with any widget that has bg color property.
So, retrieve the item widget, then call this func.
The item widget could be a static widget or a image widget or else, that is wrapped by the popmenu widget.
IWIDGET_SetBGColor(me->pIItemWidget, MAKE_RGB(0,255,255))

gooddeal wrote:thank you .
I mean how to set the background color of items of popmenu.
using IWIDGET_SetBGColor(me->pIMenuWidget, MAKE_RGB(0,255,255)) only change the whole popmenu.
and I use IWIDGET_SetFGColor(me->pIMenuWidget, MAKE_RGB(0,255,255)) ,it does not work.
how can I do ?
This function works with any widget that has bg color property.
So, retrieve the item widget, then call this func.
The item widget could be a static widget or a image widget or else, that is wrapped by the popmenu widget.
IWIDGET_SetBGColor(me->pIItemWidget, MAKE_RGB(0,255,255))

Yeah bellyjuice is right ,
First get the item widget from the pop(up)menu using
IFORM_GetWidget(pPopMenu,WID_LISTITEM,pItemwidget);
or if ur popmenu is a decorator widget then use
IDECORATOR_GetWidget(pPopMenu,pItemWidget);
and then set BG color to pItemWidget using IWIDGET_SetBGColor()

Yeah bellyjuice is right ,
First get the item widget from the pop(up)menu using
IFORM_GetWidget(pPopMenu,WID_LISTITEM,pItemwidget);
or if ur popmenu is a decorator widget then use
IDECORATOR_GetWidget(pPopMenu,pItemWidget);
and then set BG color to pItemWidget using IWIDGET_SetBGColor()