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
Super Contributor
Posts: 308
Registered: ‎05-31-2011
My Device: Blackberry-SDK-9800
My Carrier: SimPakage 6.0.0.337_9800 asia.exe

click event on bitmapfield

hello everybody,

         i am developing the application where i need to click on calender image to display a calander.....

can anybody tell me how to use click event on image.... i am using OS 6. and torch simulator.

 

Highlighted
Developer
Posts: 17,025
Registered: ‎07-29-2008
My Device: Z10 LE, Z30, Passport
My Carrier: O2 Germany

Re: click event on bitmapfield

overwrite navigationclick
----------------------------------------------------------
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
Developer
Posts: 102
Registered: ‎07-26-2011
My Device: Not a blackberry user
My Carrier: None

Re: click event on bitmapfield

Greetings.

 

As Simon said, you have to overwrite the navigation click method as the following:

 

BitmapField bitmapField = new BitmapField() {
	protected boolean navigationClick(int status, int time) {
		// What you want to happen if bitmapField is clicked.
		// The two possible status are 
		// KeypadListener.STATUS_FOUR_WAY or KeypadListener.STATUS_TRACKWHEEL
		return true; //this says you handled the event
	}
};

 

I hope this be helpful.


Let me know if this was helpful or if you have a solution.

Johan Guzmán - In case my answer pleased you, give a press to the LIKE button, please!! Mark this post as solution if it solved your problem.
Contributor
Posts: 46
Registered: ‎07-07-2011
My Device: 9800
My Carrier: BlackBerry

Re: click event on bitmapfield

 bmf= new BitmapField(bitmap,BitmapField.FOCUSABLE){
        	protected boolean navigationClick(int status, int time)
        	{
        	try{
        		// do your Operations
        	}
        	catch(Exception e) {
        	e.printStackTrace();
        	}
        	return true;
        	}
        };

 use the above code and at the same tome add NullField object to the layout.