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
Regular Contributor
Posts: 59
Registered: ‎03-06-2012
My Device: 9700
My Carrier: airtel
Accepted Solution

How to show n number of labelfields in a HFM without horizontal sc roll

Hi All,

 

 

I want to show n number of label fields without scroll in a HFM ,how to achieve this ?

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

Re: How to show n number of labelfields in a HFM without horizontal sc roll

create a hfm with NO_HORIZONTAL_SCROLL and add the labelfields
----------------------------------------------------------
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
Regular Contributor
Posts: 59
Registered: ‎03-06-2012
My Device: 9700
My Carrier: airtel

Re: How to show n number of labelfields in a HFM without horizontal sc roll

will this show the labelfield one in the next line once the screen width is reached?
Developer
Posts: 571
Registered: ‎04-11-2009
My Device: BB 10 Dev Alpha

Re: How to show n number of labelfields in a HFM without horizontal sc roll

No, It will not show.

Regards,
Kanak Sony
------------------------------------------------------------------------------------------
http://dodevelopnshare.wordpress.com/ | http://www.linkedin.com/profile/view?id=188131481&trk=tab_pro
Contributor
Posts: 25
Registered: ‎04-16-2012
My Device: Blackberry Bold
My Carrier: no_carrier

Re: How to show n number of labelfields in a HFM without horizontal sc roll

pass n and create n number of label field with setting it's extent width using setExtent of label field and width=Display.getwidth()/n
Developer
Posts: 19,628
Registered: ‎07-14-2008
My Device: Not Specified

Re: How to show n number of labelfields in a HFM without horizontal sc roll

The suggestion above will minimise the width given to each LabelField so that they all fit.  If you just want them to overlow when the screen width has been reached, try FlowFieldManager. 

Regular Contributor
Posts: 59
Registered: ‎03-06-2012
My Device: 9700
My Carrier: airtel

Re: How to show n number of labelfields in a HFM without horizontal sc roll

i will try using flowfieldmanager to get the fields down once it has reached the width