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
Contributor
georgiezzzy
Posts: 42
Registered: ‎10-23-2011
My Carrier: george najem

PLEASE HELP ME -question: add another application to the menu item.

Hello

 

just wondering is there a way to add another application to the 'menu item'.

 

so for example say i clicked on an active text field and it opened the 'item menu' (NOT THE SUB MENU)

 

HOW CAN I PUT MY APP AMONG THESE OPTIONS ?

Please use plain text.
Developer
peter_strange
Posts: 17,942
Registered: ‎07-14-2008

Re: question: add another application to the menu item.

Please put relevant content in the Subject.  "PLEASE HELP ME" is just a wate of band width.  I've noted that very few people start Threads that do not want help.....

 

Is this your own application that is displaying the active text Field?

Please use plain text.
Contributor
georgiezzzy
Posts: 42
Registered: ‎10-23-2011
My Carrier: george najem

Re: question: add another application to the menu item.

Sorry peter strange it wont happen again..

 

yes it is my own application displaying the active text field

Please use plain text.
Developer
peter_strange
Posts: 17,942
Registered: ‎07-14-2008

Re: question: add another application to the menu item.

If you are doing this from a MainScreen, then the makeMenu method is called.  In that method, you can see what Field is currently in focus, and add additional menu items as you see fit.  That is one of the ways I add 'context' type menus to my screens.

 

I have also implemented true Context menus for this sort of thing.  To do this, you create your own extended active text Field and you can create a ContextMenu that only applies to that Field.  have a look at the Javadocs to supply more information on doing this.

Please use plain text.
Contributor
georgiezzzy
Posts: 42
Registered: ‎10-23-2011
My Carrier: george najem

Re: question: add another application to the menu item.

im not entirely sure what you mean :smileysad:

Please use plain text.
Developer
peter_strange
Posts: 17,942
Registered: ‎07-14-2008

Re: question: add another application to the menu item.

[ Edited ]

Which bit do you not understand?

 

MainScreen, makeMenu, inFocus, ContextMenu or what?

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

Re: question: add another application to the menu item.

maybe this article helps:
http://supportforums.blackberry.com/t5/Java-Development/MainScreen-explained/ta-p/606644
----------------------------------------------------------
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.