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
Regular Contributor
Posts: 61
Registered: ‎02-24-2010
My Device: Storm 2
My Carrier: AT&T

Menu on click on bitampfield

Hi..

 

I have added a bitmapfield on the screen showing a bitmap image. I want when i click on the image, a menu should appear having some items so that i can perform the appropriate action on the bitmap.

 

Please suggest..

 

Thanx..

Developer
Posts: 192
Registered: ‎09-23-2009
My Device: 9860/PlayBook/Dev Alpha
My Carrier: Plus GSM

Re: Menu on click on bitampfield

You have two ways:

 - extend bitmap field and reuse makeContextMenu functions

 - extend manager/screen and reuse makeMenu function checking if getLeafFieldWithFocus() == your bitmap field

 

 

Found my post helpfull? Like it! It solves your trouble? Help others and accept it as solution. Search before asking.
My apps: Secret Cod3s | Should my tablet be banned?
--
Jakub Nietrzeba
PGS Software S.A.
Your reliable partner in Poland - IT Outsourcing - BlackBerry, iPhone, Web and Standalone applications