Scroll through PopupMenu entries?

Hi,
I have a PopupMenu with 10 or so entries. Is it possible to be able to scroll up and down the entries via the up and down arrow keys?
I thought this was automatically possible via the OS, but this seems not to be the case.

Did I imagine this? If so, what is the best way to achieve this?

Thank you all in advance.

Never seen that this would not work. Do you have code in the KeyDown event preventing the built-in behavior?

[quote=176926:@Richard Summers]Hi,
I have a PopupMenu with 10 or so entries. Is it possible to be able to scroll up and down the entries via the up and down arrow keys?
I thought this was automatically possible via the OS, but this seems not to be the case.

Did I imagine this? If so, what is the best way to achieve this?

Thank you all in advance.[/quote]

From what I see it works fine on Mac when the menu is low enough on the screen to be shorter than the list. But the amazing thing is the whole list scrolls up, instead of the content.

If the list is longer than the screen height, then it seems to scroll the content.

I do this with:

Windows KeyDown Event:

If Keyboard.AsyncKeyDown(126) then // UP
self.PM.ListIndex = self.PM.ListIndex - 1
end if

If Keyboard.AsyncKeyDown(125) then // DOWN
self.PM.ListIndex = self.PM.ListIndex - 1
end if

Thanks guys - I think I need to sort out code I have in the window key up event :slight_smile: