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. New to the forum? Please visit the ‘Getting Started’ link below.
inside custom component

Java Development

Reply
Regular Contributor
IpiRon
Posts: 75
Registered: ‎10-19-2011
My Carrier: verizon
Accepted Solution

ListField Menu Behavior

Newbie here. I've been playing with the ListField and am pretty close to having my simple needs met. However, in searching the forum/kb I saw a couple of posts mentioning the 'menu standard behavior'. I've seen this where selecting an item coughs up a menu and I can't for the life of me understand why. (I do NOT want any type of menu displayed) Can someone explain or point me to a description (in English) of the default behavior of the ListField/Menu? Thanks In Advance!

Please use plain text.
Developer
simon_hain
Posts: 13,754
Registered: ‎07-29-2008
My Carrier: O2 Germany

Re: ListField Menu Behavior

(nearly) all fields have the standard behavior that they show a context menu on click.
you can override navigationClick to change this behavior, return true to indicate that you consumed the event.
----------------------------------------------------------
feel free to press the like button on the right side to thank the user that helped you.
please mark posts as solved if you found a solution.
@SimonHain on twitter
Please use plain text.
Regular Contributor
IpiRon
Posts: 75
Registered: ‎10-19-2011
My Carrier: verizon

Re: ListField Menu Behavior

I gathered that from all the Googling and previous post replies over the past 2+ years (yours included). What I am looking for is a formal description of the exact behavior. I didn't see anything on Javadoc. Since I am a newbie, I am assuming that I have not yet found the correct documentation of controls/screen behavior in the formal BB site. Can anybody provide me the correct URL of the behaviors? (I'm looking for it in standard prose rather than trying to decifpher code and/or continually to deduce it programmatically myself). Thanks again!

Please use plain text.
Developer
simon_hain
Posts: 13,754
Registered: ‎07-29-2008
My Carrier: O2 Germany

Re: ListField Menu Behavior

On BlackBerry devices with a trackball or trackpad, a context menu appears when users click the trackball or trackpad and there is no default action.

Have no official source right now, maybe something along these lines can be found in an UI guide or the developer guide.
----------------------------------------------------------
feel free to press the like button on the right side to thank the user that helped you.
please mark posts as solved if you found a solution.
@SimonHain on twitter
Please use plain text.
Regular Contributor
IpiRon
Posts: 75
Registered: ‎10-19-2011
My Carrier: verizon

Re: ListField Menu Behavior

Okay, I'll keep searching. I'm porting my Android app over to BB 5.0. Will repost if/when I find the magic documents. PS: I see your name on a lot of replies. Thanks for taking the time to guide us!!!

 

Please use plain text.