Wrap-around for vertical scroll of MenuCtl | developer.brewmp.com Wrap-around for vertical scroll of MenuCtl | developer.brewmp.com

Developer

Wrap-around for vertical scroll of MenuCtl

Forums:

Hi,
Want to know any MenuCtl Property that will automatically scroll to last item of the Menu when i press UP key in 1st item and viceversa for a MenuCtl??.
Just trying to find out if handling the event myself is the only way out or is there some Property setting that'll save time for me

Anandaraman R wrote:Hi,
Want to know any MenuCtl Property that will automatically scroll to last item of the Menu when i press UP key in 1st item and viceversa for a MenuCtl??.
Just trying to find out if handling the event myself is the only way out or is there some Property setting that'll save time for me
I have the same problem. Anybody knows abou this? Thank you.

Anandaraman R wrote:Hi,
Want to know any MenuCtl Property that will automatically scroll to last item of the Menu when i press UP key in 1st item and viceversa for a MenuCtl??.
Just trying to find out if handling the event myself is the only way out or is there some Property setting that'll save time for me
I have the same problem. Anybody knows abou this? Thank you.

Have you tried the property, MP_WRAPSCROLL? From its description in the API reference:Quote:If set, wrap when scrolling off the end of screen(only applicable to SoftKey and List controls).

Have you tried the property, MP_WRAPSCROLL? From its description in the API reference:Quote:If set, wrap when scrolling off the end of screen(only applicable to SoftKey and List controls).

Morgan wrote:Have you tried the property, MP_WRAPSCROLL? From its description in the API reference:
That's not gonna work for IMenuCtl (regular menu control), isn't it? What did you use? A code example would help. Thank you.

Morgan wrote:Have you tried the property, MP_WRAPSCROLL? From its description in the API reference:
That's not gonna work for IMenuCtl (regular menu control), isn't it? What did you use? A code example would help. Thank you.

walterm wrote:That's not gonna work for IMenuCtl (regular menu control), isn't it?My bad ... I should have spent a few extra seconds and actually engaged my brain. Since MP_WRAPSCROLL's(obviously) not going to work for a regular menu control, I would say that the only way to get vertical wrapping is to roll your own ... which if you handle the EVT_KEY event shouldn't be to difficult (especially if you assign sequentially numbered ID's to the menu items -- actually, all you really need to do is keep track of the id's of the first and last items in the list).
And, again, I apologize for posting without thinking (and getting caught).
Paul

walterm wrote:That's not gonna work for IMenuCtl (regular menu control), isn't it?My bad ... I should have spent a few extra seconds and actually engaged my brain. Since MP_WRAPSCROLL's(obviously) not going to work for a regular menu control, I would say that the only way to get vertical wrapping is to roll your own ... which if you handle the EVT_KEY event shouldn't be to difficult (especially if you assign sequentially numbered ID's to the menu items -- actually, all you really need to do is keep track of the id's of the first and last items in the list).
And, again, I apologize for posting without thinking (and getting caught).
Paul