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. New to the forum? Please visit the ‘Getting Started’ link below.
inside custom component

Java Development

Reply
Regular Contributor
sheetaloswal
Posts: 59
Registered: ‎03-06-2012
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 ?

Please use plain text.
Developer
simon_hain
Posts: 13,830
Registered: ‎07-29-2008
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
Please use plain text.
Regular Contributor
sheetaloswal
Posts: 59
Registered: ‎03-06-2012
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?
Please use plain text.
Developer
kanaksony
Posts: 530
Registered: ‎04-11-2009

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
Please use plain text.
Contributor
rohit_499
Posts: 25
Registered: ‎04-16-2012
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
Please use plain text.
Developer
peter_strange
Posts: 17,719
Registered: ‎07-14-2008

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. 

Please use plain text.
Regular Contributor
sheetaloswal
Posts: 59
Registered: ‎03-06-2012
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
Please use plain text.