Soft key menu activation | developer.brewmp.com Soft key menu activation | developer.brewmp.com

Developer

Soft key menu activation

Forums:

Hi..
I need help again..the brew work had got suspended so im working again on brew now...n am still a newbie

how should i handle a menu and a softkey menu together in one screen...I have wriiten the code for AVK_DOWN which does this

IMENUCTL_SetActive(pApp->m_pMenu, FALSE); //disable menu
IMENUCTL_SetActive(pApp->m_pSKscreen3, TRUE);//enable softkey menu

But on button press the softkey menu does not get selected...i tried
IMENUCTL_SetSel(pApp->m_pSKscreen3,IDS_NAMEOPTIONS);

too..but this doesnt work either...i need an urgent reply..n will be deeply obliged
thanx a lot n regards
Soumya

while calling HandleEvent of menu control interface make sure that only selected menu is activated and others deactivated use if condition with logical and operator like
if (menu1 is activated AND menu2 is deactivated)
{
HandleEvent.........(of activated menu)

similarlily for other menu do the same otherwise while pressing the key if it will do event handling for previously selected menu which is now deactivated.
try it out ! All the best...

while calling HandleEvent of menu control interface make sure that only selected menu is activated and others deactivated use if condition with logical and operator like
if (menu1 is activated AND menu2 is deactivated)
{
HandleEvent.........(of activated menu)

similarlily for other menu do the same otherwise while pressing the key if it will do event handling for previously selected menu which is now deactivated.
try it out ! All the best...

Sowmya,
I am assuming u have 2 menu controls (AEECLSID_MENUCTL & AEECLSID_SOFTKEYCTL) on a screen.
I think u are handling the focus switch between the controls correctly
IMENUCTL_SetActive(pApp->m_pMenu, FALSE); //disable menu
IMENUCTL_SetActive(pApp->m_pSKscreen3, TRUE);//enable softkey menu
Are you calling the above routine before calling:
IMENUCTL_HandleEvent(pApp->m_pMenu, eCode, wParam, dwParam)
Cause I think the AVK_DOWN key will be handled by the AEECLSID_MENUCTL control and never reach your focus switching logic.

Sowmya,
I am assuming u have 2 menu controls (AEECLSID_MENUCTL & AEECLSID_SOFTKEYCTL) on a screen.
I think u are handling the focus switch between the controls correctly
IMENUCTL_SetActive(pApp->m_pMenu, FALSE); //disable menu
IMENUCTL_SetActive(pApp->m_pSKscreen3, TRUE);//enable softkey menu
Are you calling the above routine before calling:
IMENUCTL_HandleEvent(pApp->m_pMenu, eCode, wParam, dwParam)
Cause I think the AVK_DOWN key will be handled by the AEECLSID_MENUCTL control and never reach your focus switching logic.