Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6206751
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T05:30:14+00:00 2026-05-24T05:30:14+00:00

I already posted my question below link.. scroll change listener on blackberry The error

  • 0

I already posted my question below link..

scroll change listener on blackberry

The error has been resolved.

But i need to move the field center position after scrolling . pls give any idea… Thanks in advance…
there are number of fields add in the scroll bar…
after scrolling its show like this.

enter image description here

But i need to move the field center position like this.

enter image description here

Pls give any idea..

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-24T05:30:15+00:00Added an answer on May 24, 2026 at 5:30 am

    Looks like you just need some flag to detect whether this is a sroll event originated by user, or from the code (programmatically).

    If you originate a scroll event programmatically, then set some boolean, let’s call it ignoreScrollEvent, to true. Smth like this (pseudo code):

    private boolean ignoreScrollEvent = false;
    
    public void scrollChanged(Manager manager, int newHorizontalScroll, 
             int newVerticalScroll) {
        if (!ignoreScrollEvent) {
             ignoreScrollEvent = true;
             // recalculate the newHorizontalScroll so the field in the focus 
             // gets in the middle
             horizontalScrollLayout.setHorizontalScroll(newHorizontalScroll);
             int fieldIndex = horizontalScrollLayout.getFieldAtLocation(
                 newHorizontalScroll + customfieldwidth, 0
             );
             Field f = horizontalScrollLayout.getField(fieldIndex);
             f.setFocus();
             invalidate();
        } else {
             ignoreScrollEvent = false;
        }
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

First of all sorry if the question has been already posted, but I didn't
I have already posted a question about this, but the situation has changed sufficiently
This is an already posted question but I need to understand what is going
This question has already been posted before, however, the correct answer doesn't seem to
Sorry if the question has already posted, I want to know if GAE support
I know this question was already posted in StackOverflow but I either didnt understand
I know that I was already posted similar question but I just can't find
I have already posted another question about this, but no one seemed to know
I've already posted this question on the authors website , but I thought I
I already posted a question regarding it, but at that time I haven't have

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.