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
Developer
Posts: 18
Registered: ‎12-21-2009
My Device: Not Specified
Accepted Solution

Focus / Unfocus spoils fields when using custom fields - Help

Hello,

 

I am hoping that someone can help me with an issue I am seeing with a screen that contains a VerticalScreenManager which in turn contains a number of custom HorizontalFieldManagers, each containing a LabelField and an EditField.

 

Note: I am using a customer HorizontalFieldManager so that I can use sublayout to possible to field as I need them.

 

The purpose of the screen is to allow the user to scroll through the fields and on focus on the edit fields.

 

However as the user scrolls and the fields loose and gain focus the "focus highlighting" is not "cleaned" from the previous field and so there is spoiling: multiple fields have the "focus highlighting"

 

I have seen several similar other topics in the forum but nothing quite the same.

 

Screen

- Vertical Field Manager (standard)

-- HorizontalFieldManager (custom) - LabelField - EditField

-- HorizontalFieldManager (custom) - LabelField - EditField

-- HorizontalFieldManager (custom) - LabelField - EditField

 

It seems that when scrolling the HorizontalFieldManager is getting and loosing the focus, but not repainting itself? Is that possible?

 

I am using OS 5.0.

 

Many thanks,

 

David

Developer
Posts: 18
Registered: ‎12-21-2009
My Device: Not Specified

Re: Focus / Unfocus spoils fields when using custom fields - Help

It seems that the problem was the VerticalFieldManager did not have the sae color background as the fields within it, and so when the focus and unfocus were painted the VerticalFieldManager background color was painted, I am not sure why this was, and if it is a bug in the 5.0 OS, but when I set the background color in the VerticalFieldManager I did not see the problem.

Highlighted
New Contributor
Posts: 8
Registered: ‎11-17-2011
My Device: developer
My Carrier: developer

Re: Focus / Unfocus spoils fields when using custom fields - Help

Hi

 

I have a similar problem . i have a vertical field manager with multiple horizontal field managers . each horizontal field managers has three label fileds. i need to have blue color in alternating horizontal field managers. i have customised it successfully to gain that appearance , but when i scroll thru the different horizontal field managers  they loose and gain the blue color randomly . any idea how to fix this repainting ?

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

Re: Focus / Unfocus spoils fields when using custom fields - Help

Hello TessyJose, please create an own thread for your question. Most forum members don't look into threads marked as solved.
----------------------------------------------------------
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