Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Java Development

Reply
Highlighted
New Developer
Posts: 5
Registered: ‎06-16-2009
My Device: Not Specified

Use the scroll as a select command

Hi. I have an application that uses a List to show a Menu. As you know, if I press the scroll button, I get a menu where I can get to see the available commands. However, I want to know if I can use the scroll button as a Select command, I mean, if I select an option and I press the scroll button, I don't get a Menu, but the option I'm selecting gets executed. Thanks in advance!

Developer
Posts: 467
Registered: ‎07-16-2009
My Device: Z10 LE
My Carrier: Vodafone NL

Re: Use the scroll as a select command

Just override navigationClick(int status, int time) in Screen and use List.getSelectedIndex().

 

I would recommend you to read common part of Developers Guide before starting development.