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
New Contributor
Posts: 2
Registered: ‎12-21-2011
My Device: 9800
My Carrier: 008618616365805
Accepted Solution

How can disable the scrolling animation when setFocus

[ Edited ]

I am now working on a Instant message conversation screen. when user send a message, the IM list on the screen will be updated the I setFocus on message input field: this occors a problem after OS 6.0 becoz the list will always scrolling from top to bottom...

 

whether I need overide any method like moveFocus to achieve this??

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

Re: How can disable the scrolling animation when setFocus

Try setScrollingInertial(false) on your Manager. If you are using MainScreen, you can try yourScreen.setScrollingInertial(false), but if that doesn't help, oneOfYourFields.getManager().setScrollingInertial(false) should (use that after you add your Fields to the screen).

----------------------------------------------------------
please click 'Accept Solution' on posts that provide the solution to the question you've posted. Don't say "Thanks", press 'Like' button instead!
New Contributor
Posts: 2
Registered: ‎12-21-2011
My Device: 9800
My Carrier: 008618616365805

Re: How can disable the scrolling animation when setFocus

Hey, it seems worked for me.

But just one note that the setScrollingInertial is a protected method so seems need to create a inner class to overwrite the construtor of the manager class.