Forums | developer.brewmp.com Forums | developer.brewmp.com

Developer

Forums

Forums:

Hi all

I need to change the heading of one of the items in the menu control at run time. Now i know that, for this we have to use IMENUCTL_SetItemText. But on implementing it, i am not able to get the desired result. I checked on the related threads, but still got no help. Could anyone please tell what is the reason of this???

Thanks in advance

why don't we use
IMENUCTL_AddItemEx(IMenuCtl * pIMenuCtl, CtlAddItem * pai)
and use pai.pText to change u r menu text

why don't we use
IMENUCTL_AddItemEx(IMenuCtl * pIMenuCtl, CtlAddItem * pai)
and use pai.pText to change u r menu text

SETAEERECT(&prc, 0, 0, 200, 100);
IMENUCTL_SetRect(pMe->pIMenu1,&prc);
IMENUCTL_SetTitle(pMe->pIMenu1,NULL,NULL,NULL);
IMENUCTL_SetProperties( pMe->pIMenu1,MP_WRAPSCROLL );
for(i = 0; i < COUNT; i++)
{
char* buffer = pMe->pBuff[i];
IMENUCTL_AddItem(pMe->pIMenu1,
NULL,
NULL,
i,
buffer,
AEE_FONT_BOLD);
}
IMENUCTL_SetActive(pMe->pIMenu1,TRUE);
IDISPLAY_Update(pMe->a.m_pIDisplay);

SETAEERECT(&prc, 0, 0, 200, 100);
IMENUCTL_SetRect(pMe->pIMenu1,&prc);
IMENUCTL_SetTitle(pMe->pIMenu1,NULL,NULL,NULL);
IMENUCTL_SetProperties( pMe->pIMenu1,MP_WRAPSCROLL );
for(i = 0; i < COUNT; i++)
{
char* buffer = pMe->pBuff[i];
IMENUCTL_AddItem(pMe->pIMenu1,
NULL,
NULL,
i,
buffer,
AEE_FONT_BOLD);
}
IMENUCTL_SetActive(pMe->pIMenu1,TRUE);
IDISPLAY_Update(pMe->a.m_pIDisplay);