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


Thank you for visiting the BlackBerry Support Community Forums.

BlackBerry will be closing the BlackBerry Support Community Forums Device Forums on April 1st (Developers, see below)

BlackBerry remains committed to providing excellent customer support to our customers. We are delighted to direct you to the CrackBerry Forums, a well-established and thorough support channel, for continued BlackBerry support. Please visit http://forums.crackberry.com or http://crackberry.com/ask. You can also continue to visit BlackBerry Support or the BlackBerry Knowledge Base for official support options available for your BlackBerry Smartphone.

"When we launched CrackBerry.com 10 years ago, we set out to make it a fun and useful destination where BlackBerry Smartphone owners could share their excitement and learn to unleash the full potential of their BlackBerry. A decade later, the CrackBerry community is as active and passionate as ever and I know our knowledgeable members and volunteers will be excited to welcome and assist more BlackBerry owners with their questions."

- Kevin Michaluk, Founder, CrackBerry.com

Developers, for more information about the BlackBerry Developer Community please review Join the Conversation on the BlackBerry Developer Community Forums found on Inside BlackBerry.


Reply
Developer
Posts: 813
Registered: ‎05-29-2012
My Device: see later
My Carrier: see later

ADDMENUITEM

HI ALL, I Have in my blacberry application  pictures in the first page.

 

In case picture is focused I want to show him a certain menu on click.

In case the picture is not focused I show him different menus on menu click.

 

can it be done? how?

Highlighted
Regular Contributor
Posts: 52
Registered: ‎07-04-2011
My Device: Bold-3
My Carrier: Developer

Re: ADDMENUITEM

Hi,

I can not understand what you try to say.

So ask your query in simple way.

So any one can give its answer easily.

 

Regards,

Developer
Posts: 813
Registered: ‎05-29-2012
My Device: see later
My Carrier: see later

Re: ADDMENUITEM

Hmm okey. You have the menu options on each page in blackberry.You add to the menu using addmenuitem function.

Now we are on page 1. I click on menus , it shows me the menus i added.What I want to do , on same page to show different menus based where the user is. If focused on a picture i show him menu's 1 2 3...if not focused i show him menu's close delete sthg etc etc
Developer
Posts: 4,764
Registered: ‎07-21-2008
My Device: Not Specified

Re: ADDMENUITEM

You need to override makeMenu() in your screen class.

 

In that method, you'll test for the specific condition and add (or not add) your menu item as required.

 

if (<condition>) {

  menu.add(menuItem);

}