Circular Navigation of Menu | developer.brewmp.com Circular Navigation of Menu | developer.brewmp.com

Developer

Circular Navigation of Menu

Forums:

hi all,

How can I have my IMenuCtl circularly navigate ?

If you're asking about having the selection wrap-around from top to bottom or vice-versa, you can do this by setting the MP_WRAPSCROLL property. However, this only works for softkey and list menu control types - you're out of luck for normal menus.

If you're asking about having the selection wrap-around from top to bottom or vice-versa, you can do this by setting the MP_WRAPSCROLL property. However, this only works for softkey and list menu control types - you're out of luck for normal menus.

Ya the api specification says that.
Is there any trick to do it..?
I dont have control on IMENUCTL_HandleEvent. Is there any way to fire an event each time while navigating the menu.
My idea is to set the first menuitem select when i m pressing the down arrow key while in the last menu item.
/** ItsMe */

Ya the api specification says that.
Is there any trick to do it..?
I dont have control on IMENUCTL_HandleEvent. Is there any way to fire an event each time while navigating the menu.
My idea is to set the first menuitem select when i m pressing the down arrow key while in the last menu item.
/** ItsMe */

just write a wrapper around the event handler,
when you get up or down events, check the currently selected item, and if its the bottom and you get down, set the selected item to the top and redraw.
-Tyndal

just write a wrapper around the event handler,
when you get up or down events, check the currently selected item, and if its the bottom and you get down, set the selected item to the top and redraw.
-Tyndal

thanks tyndal for your valuable suggestion

thanks tyndal for your valuable suggestion

tyndal wrote:just write a wrapper around the event handler,
when you get up or down events, check the currently selected item, and if its the bottom and you get down, set the selected item to the top and redraw.
-Tyndal
How would you do that? A code sample would help.
Thank you.

tyndal wrote:just write a wrapper around the event handler,
when you get up or down events, check the currently selected item, and if its the bottom and you get down, set the selected item to the top and redraw.
-Tyndal
How would you do that? A code sample would help.
Thank you.

IMENUCTL_GetSel()
IMENUCTL_SetSel()

IMENUCTL_GetSel()
IMENUCTL_SetSel()