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: 159
Registered: ‎02-17-2011
My Device: Not Specified

Re: how can i show multiple row using Horizonatal and vertical field manager

thanks,

 

can u help me to scroll data vertically.

 

actually i got all 10 data,.but see only first 5 data, so can u tell me how i can see other five data.

i think scrollbar is proper for it ,but i dont know that ,where it add. 

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

Re: how can i show multiple row using Horizonatal and vertical field manager

Either your Screen or your VerticalFieldManager needs VERTICAL_SCROLL | VERTICAL_SCROLLBAR style bits in the constructor.

----------------------------------------------------------
please click 'Accept Solution' on posts that provide the solution to the question you've posted. Don't say "Thanks", press 'Like' button instead!
Regular Contributor
Posts: 61
Registered: ‎11-08-2010
My Device: Not Specified

Re: how can i show multiple row using Horizonatal and vertical field manager

Hi ,

      can you please send me the sample code for the above said one..

 

My mail id : sunillinus05@gmail.com

 

With Regards,

Sunil

    

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

Re: how can i show multiple row using Horizonatal and vertical field manager

Hi, Sunil,

first of all, it's not a good idea posting in solved threads. The chances of someone looking there are quite slim.

Second - you already have that sample code - I showed it in the solution post. Go there and see - there's not much to it. Ignore the adding of HorizontalFieldManagers and concentrate on the 'new VerticalFieldManager' line.

----------------------------------------------------------
please click 'Accept Solution' on posts that provide the solution to the question you've posted. Don't say "Thanks", press 'Like' button instead!
Regular Contributor
Posts: 52
Registered: ‎11-29-2010
My Device: Blackberry 9700

Re: how can i show multiple row using Horizonatal and vertical field manager

I am able to add different HFm to a VFM using a for loop. No problem that will work perfectly. My problem is that I want to align the fields added in HFm. So I m overriding the sublayout method and setpositionchild in that. After this only first hfm is displayed on my VFM. I checked the loop, and it is showing that they are adding perfectly. But not displaying in the screen. Please help me

 

Highlighted
Regular Contributor
Posts: 52
Registered: ‎11-29-2010
My Device: Blackberry 9700

Re: how can i show multiple row using Horizonatal and vertical field manager

I  have fixed the problem. We need to override the sublayout of verticalfiel manager too. Then all hfm will be displayed.