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
Highlighted
New Developer
Posts: 26
Registered: ‎11-20-2008
My Device: Not Specified

Override Focus Resetting When Clicking a Field

Hello,

 

I have some custom Fields that paint blocks of text in a scrolling VerticalFieldManager. These fields are focusable since they expand/contract in size when they recieve a navigationClick event. When a given field is expanded, the user may need to scroll down in order to read the entire contents. All of  this works fine, except that when you touch the custom field in order to scroll down the screen, the internal method moveFocusToFieldWithInput is called which resets the screen position to the TOP of the currently focused field. Is there a way to change this behavior? The user needs to be able to scroll down the VerticalFieldManager and touch fields in the process without the focus being reset to the top of the field. I have look at trying to override all focus related fields, including moveFocus on the VFM and the screen, but none seem to alter this behavior.

 

Thanks. 

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

Re: Override Focus Resetting When Clicking a Field

maybe setVerticalScroll can help. are the fields in the same manager as the text? could help to put them into different ones.
----------------------------------------------------------
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
New Developer
Posts: 24
Registered: ‎07-30-2008
My Device: Not Specified

Re: Override Focus Resetting When Clicking a Field

 jeffm,  do you resolve this issue?

 

, setVerticalScroll does not help is this case, because this method is not used for resetting the scroll value.

 

New Developer
Posts: 26
Registered: ‎11-20-2008
My Device: Not Specified

Re: Override Focus Resetting When Clicking a Field

No, I never found a solution to this. The workaround was to refactor the code to use a focusable ActiveRichTextField which magically does not seem to have this problem.

New Contributor
Posts: 2
Registered: ‎08-13-2010
My Device: Not Specified

Re: Override Focus Resetting When Clicking a Field

I think i have the same problem. do you resolve this issue?

 

I post my problem here:

 

Problem on Custom List when the focus is obtained