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
Developer
Posts: 404
Registered: ‎05-31-2011
My Device: curve
My Carrier: devel

title and status color

hii, how to change the setTitle and setStatus backgroud color and  text color?

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

Re: title and status color

you can set a field for status and title, or a manager. if this field/manager has a background color it will be used.
----------------------------------------------------------
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: 404
Registered: ‎05-31-2011
My Device: curve
My Carrier: devel

Re: title and status color

yes but i cant use it for all status width!!
Developer
Posts: 16,992
Registered: ‎07-29-2008
My Device: Z10 LE, Z30, Passport
My Carrier: O2 Germany

Re: title and status color

yes, you can. the USE_ALL_WIDTH style works properly.
----------------------------------------------------------
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: 404
Registered: ‎05-31-2011
My Device: curve
My Carrier: devel

Re: title and status color

when using USE_ALL_WIDTH in horizontalfieldmanager i can't use FIELD_HCENTER how use it both
Highlighted
Contributor
Posts: 24
Registered: ‎08-04-2010
My Device: Not Specified

Re: title and status color

You can make use of "|" operator to club more than one style parameters for the horizontal manager.

(Just in case, this was your query) Smiley Happy

Eg:

 

HorizontalFieldManager tempManager = new HorizontalFieldManager( HorizontalFieldManager.USE_ALL_WIDTH|HorizontalFieldManager.FIELD_HCENTER) ;

 

Regards,

Suhas

 

 

 

 

Developer
Posts: 404
Registered: ‎05-31-2011
My Device: curve
My Carrier: devel

Re: title and status color

yes i know but when using use_all_width, the width of the horizontal and hcenter increases will not occur, the field begins just to the left
Developer
Posts: 16,992
Registered: ‎07-29-2008
My Device: Z10 LE, Z30, Passport
My Carrier: O2 Germany

Re: title and status color

if the styles don't do it create an own manager:
http://supportforums.blackberry.com/t5/Java-Development/Create-a-custom-layout-manager-for-a-screen/...
----------------------------------------------------------
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