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
Trusted Contributor
Posts: 145
Registered: ‎05-01-2011
My Device: 9780
My Carrier: Developer
Accepted Solution

How to wrap horizontal manager fields

[ Edited ]

I am having a horizontal manager

 

final HorizontalFieldManager horizontalMgr = new HorizontalFieldManager(HorizontalFieldManager.FIELD_HCENTER);

 

and am adding a label link field to the horizontal manager dynamically

 

horizontalMgr.add(Util.getPaginationLinkField(title, action, Color.BLACK, totalCount, "Bold"));   

 

Below is the labelField declaration

 

final LabelField paginationField = new LabelField(label, LabelField.FOCUSABLE) 

 

Problem is when i add more fields to the manager it doesnot wrap the fields to next line

 

this is wat i have seen in my screen but if more than 5 fields added then it performs some weird thing field does not wrap it gets hide

 

[1-30] [31-60] [61-90] [91-120] [121-150] - normal case no problem

 

[1-30] [31-60] [61-90] [91-120] [121-150] [151-180] - last field [151-180] gets hide

 

i want it to show as

 

[151-180] - in the next line and goes on

 

can any one tell me how to handle this??

Developer
Posts: 2,268
Registered: ‎07-08-2009
My Device: various
My Carrier: various

Re: How to wrap horizontal manager fields

HorizontalFieldManager never wraps. You need to use FlowFieldManager for that.

----------------------------------------------------------
please click 'Accept Solution' on posts that provide the solution to the question you've posted. Don't say "Thanks", press 'Like' button instead!
Trusted Contributor
Posts: 145
Registered: ‎05-01-2011
My Device: 9780
My Carrier: Developer

Re: How to wrap horizontal manager fields

First of all sorry for the very late reply, Flow field manager works as expected!! Thanks