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
BlackBerry Development Advisor
Posts: 15,264
Registered: ‎07-09-2008
My Device: BlackBerry Passport
My Carrier: Bell

Re: How can set the background color for status bar?

Am I correct to assume you are adding your custom LabelField to the status area of a MainScreen?  What BlackBerry model and handheld software version are you testing with?  You can find this under Options, About on the BlackBerry.

 

I tried setting the status to contain a long string in a LabelField with the same styles (LabelField.USE_ALL_WIDTH|LabelField.FIELD_HCENTER|LabelField.HCENTER|LabelField.USE_ALL_HEIGHT) and the text did wrap.

Mark Sohm
BlackBerry Development Advisor

Please refrain from posting new questions in solved threads.
Problem solved? Click the Accept As Solution button.
Found a bug? Report it using Issue Tracker
Developer
Posts: 26
Registered: ‎08-04-2008
My Device: Not Specified

Re: How can set the background color for status bar?

Yes.

 

I am using blackberry 8800 v 4.2.1.79(platform 2.3.0.74).

 

Actually i am using the same customfield in 5 screens of my application as status field by adding  custom LabelField to the status area of a MainScreen. 

 

It is working fine in 3 screens and it has problems in 2 screens.

 

Also the screen with this problem is changes with invokation.

 

 

New Developer
Posts: 20
Registered: ‎07-17-2008
My Device: Not Specified

Re: How can set the background color for status bar?

I am facing same problem with one specific string , which have "%40" like:

 

"BBDev.Delhi%yahoo.com@yahoo.xyz.com".

 

I am using 4.1 OS and 7290 device model.

BlackBerry Development Advisor
Posts: 15,264
Registered: ‎07-09-2008
My Device: BlackBerry Passport
My Carrier: Bell

Re: How can set the background color for status bar?

Your custom manager may not be providing the LabelField with enough space to draw all of its text (not enough space to use 2 rows).  This could result in the text being truncated.

 

I recommend stepping through your application to see what layout values are being used in your custom manager.

Mark Sohm
BlackBerry Development Advisor

Please refrain from posting new questions in solved threads.
Problem solved? Click the Accept As Solution button.
Found a bug? Report it using Issue Tracker