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.
12-26-2012 07:00 AM
I have a HFM where i am adding a BitmapField.HFM is NON_FOCUSABLE and BitmapField is FOCUSABLE.Both of them has navigationClick.But when i click BitmapField the nagivation of HFM executes.But the same is not true for touchEvent.In touchEvent respective toucEvents are being executed,so whats the problem with navigationClick?
12-26-2012 08:54 AM
If you want to use navigation click then you must have to make your HFM FOCUSABLE.
If you do not make your HFM focusable you can not use navigation click or touch event.
So you must have to make field Focusable.
12-27-2012 12:50 AM
ya but you add your bitmapfield in your HFM & your HFM in unfocusable so because of that HFM your navigation click did not work.
do one thing make your HFM focusable & remove that navigation click from it ..
Then you will get proper idea...
12-27-2012 09:04 PM
Focus doesn't really apply to Managers. You can't have an unfocusable Manager only Fields. However Managers do get events like navigationClick and touchEvent so that they can figure out which Field to give the event to.
In addition there are complications with the interaction of navigationClick and touchEvents - touch Events 'click' can be turned in navigationClick.
In addition, you have to careful when you have non focusable Fields near focusable Fields and try to use touch events, touch Events can be supplied to Fields that are not 'in focus' because they are closer to the point being touched. You may need to check that the touch event is in the Field.
That said I don't really understand the question. Can you explain the problem again, perhaps with a diagram?
12-28-2012 01:07 AM
The question is simple.I have a Manager where i m adding fields.I have navigationClick on both the Manager and Field,coz my structure is dynamic,which means onclick attribute i will fetch from an XML.So when my Field have focus and i do click on it,instead of going to nagivation segment of Field its going to that of the Manager.So how to avoid it?
12-28-2012 06:39 AM
As I mentioned above, Managers do get events like navigationClick so that they can select the Field that has been 'clicked'. That is how the process works.
Try the following two tests:
1) Remove navigationClick from the Manager
2) Change your navigationClick to return super.navigationClick.
Tell us what happens. In both cases does the Field get the 'click'?
What are you trying to achieve with navigationClick in the Manager anyway?