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
lakshman9687
Posts: 243
Registered: ‎07-22-2011
My Carrier: AirTel

Is there any Method like setVerticalScroll(int pos) in OS 5.0

Hi All,

 

Is there any Method like setVerticalScroll(int pos) in OS 5.0.

 

In my application i am using setVerticalScroll(int pos)  method  for OS 6.0 but this is not available in OS 5.0 then what is the alternate solution to achive that functionality.

 

Thanks in advance..

 

Regards,

Lakshman K

----------------------------------------------------------
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.

Please use plain text.
Developer
pradeep_ch
Posts: 543
Registered: ‎12-23-2010
My Carrier: Airtel

Re: Is there any Method like setVerticalScroll(int pos) in OS 5.0

Hi Lakshman,

 

In 5.0 also setVerticalScroll(int pos) is available.

 

Thanks.

 

Please use plain text.
Developer
simon_hain
Posts: 15,558
Registered: ‎07-29-2008
My Carrier: O2 Germany

Re: Is there any Method like setVerticalScroll(int pos) in OS 5.0

the reason why you don't see it is that the manager class was changed on OS 6, they added the scrollview component which contains this method, but states "since 6.0".

before it was in the manager class, check the 5.0 api, it's available in all OS versions:
http://www.blackberry.com/developers/docs/5.0.0api/net/rim/device/api/ui/Manager.html#setVerticalScr...
----------------------------------------------------------
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.
Developer
lakshman9687
Posts: 243
Registered: ‎07-22-2011
My Carrier: AirTel

Re: Is there any Method like setVerticalScroll(int pos) in OS 5.0

Hi Pradeep,

 

Thanks for your reply,

 

Sorry i need animation also it means  setVerticalScroll(int pos,boolean true) user able to see the movement for that any solution or any link.

 

Thanks in advance.

 

Regards,

Lakshman K

 

 

 

----------------------------------------------------------
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.

Please use plain text.
Developer
simon_hain
Posts: 15,558
Registered: ‎07-29-2008
My Carrier: O2 Germany

Re: Is there any Method like setVerticalScroll(int pos) in OS 5.0

no, you have to animate it yourself. there is a very in-depth thread about animated scrolling just one search away, but its quite complicated.
----------------------------------------------------------
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.
Developer
pradeep_ch
Posts: 543
Registered: ‎12-23-2010
My Carrier: Airtel

Re: Is there any Method like setVerticalScroll(int pos) in OS 5.0

Please use plain text.