Press 't' (scroll up) and 'b' (scroll down)

Hello

I have a verticalfieldmanager which has many areas (an unknown number as the number of fields is determined by a search user-defined).

I would like to implement the hotkeys of BB - specifically when the user presses 't', I want the verticalfieldmanager to scroll to the top, and when the user clicks on the 'b', I want the Manager verticalscroll to scroll down.

(The Manager of verticalfield is not the only field on the screen).

I searched this forum, but not found a solution.

Someone knows how to do this?

I tried the following, but it doesn't work:

VerticalFieldManager _bottmanager = new VerticalFieldManager(
            VerticalFieldManager.VERTICAL_SCROLL
                    | VerticalFieldManager.VERTICAL_SCROLLBAR){
        protected boolean keyDown(int keycode, int time){

                        //if user presses 't', scroll to top
            if (keycode==Characters.LATIN_SMALL_LETTER_T){
                _bottmanager.setVerticalScroll(0);
            }
            return true;

        }
    };

In my experience, managers will try to ensure that the field that currently has the focus is displayed.  So if you want to scroll to the top, you need to find an active field at the top, place the cursor and then set the VerticalScroll

Something like

If {(keycode is Characters.LATIN_SMALL_LETTER_T)

for (int i = 0; i)< _bottmanager.getfieldcount();="" i++="" )="">

Field f = _bottmanager.getField (i);

If (f.isFocusbale () {}

f.setFocus ();

break;

}

}
_bottmanager.setVerticalScroll (0); Not sure this is necessary
}

Not sure this will compile, but you get the idea, I hope,

The opposite is of course necessary background work for the letter B.

Let us know if this doesn't work for you.

Tags: BlackBerry Developers

Similar Questions

  • When you read an article on the web I have a circle with the 4 arrows to pop up on the page and it will be auto-faites scroll down?

    When you read an article on the web I have a circle with the 4 arrows to pop up on the page and it will be auto-faites scroll down?

    original title: auto-scroll

    When you read an article on the web I have a circle with the 4 arrows to pop up on the page and it will be auto-faites scroll down?

    ===================================
    I get that if I press the wheel too hard.

    It allows to scroll just by moving the slider
    instead of turning the scroll wheel. And... If the
    Window is larger than the screen, you...
    can scroll to the left and right also.

  • Reading and scrolling down a textfield without modification.

    Hi all

    I create an interactive PDF which allows you to take a note. So there is a textfield with several marked line. When I use my PDF on my ipad, I can still take some remark, but when I finished and I remove my keyboard, I can't scroll to the bottom of the TextField. I have to click on the text, open the keyboard and then I can scroll down. Is there a way to scroll to the bottom of a text field on acrobat reader for ipad without opening the keyboard?

    Thank you!

    Bernd is correct. The text field is not set unless it is activated (by pressing on it). Once you enable it, the keyboard is displayed (unless an external keyboard is connected).

  • When I open Firefox &gt; download box, I can control my scroll down, and then all of a sudden it will blast thru my files... How can I stop this from happening?

    When I open the file Downlad box in Firefox (v28) and asks me to select a file to download... as I click to scroll down the download file box things work well... then all of a sudden things scroll down (fast) at the bottom of the download file by itself.

    How can I stop this from happening?

    Thank you

    Start Firefox in Safe Mode to check if one of the extensions (Firefox/tools > Modules > Extensions) or if hardware acceleration is the cause of the problem (switch to the DEFAULT theme: Firefox/tools > Modules > appearance).

    • Do NOT click on the reset button on the startup window Mode without failure.
  • Cannot select text and scroll down on any web page.

    The problem is that in Firefox, other applications work fine. I've tried reseting my computer and reset Firefox start Firefox in safe mode with disabled modules. None of these things has solved the problem. Help would be appreciated.

    Update:
    -L'OS is Ubuntu 12.04 LTS
    -The issue is not specific to Firefox, but any window full-screen (now I feel stupid for asking this question).
    -Just found this bug on Launchpad report:
    https://bugs.Launchpad.NET/Ubuntu/+source/Firefox/+bug/744580
    The problem occurs because the scrolling down is only triggered by the pointer is what past beyond the highlight box. The problem persists as long as the windows are full-screen; scrolling should occur when the pointer of the hit the lower edge of the screen, but does not work. If the window is made smaller the pointer may move beyond its edge and allows to scroll down while highlighting. This isn't a real solution, but there is a patch available in the forum section linked above (see comment #8).

  • While on a page web, using one of several browsers, it will take off and scroll down without any input from me. Seems to be intermittent but annoying. All solutions?

    While on a page web, using one of several browsers, it will take off and scroll down without any input from me. Seems to be intermittent but annoying. All solutions?

    This could be a case of interference.   Read this document about it.   Think about the suggestion of new electonic or other nearby wireless devices.   I recently read the someone pen wacom being the culprit.

    Potential sources of interference Wi - Fi and Bluetooth - Apple Support

  • Screen is scrolling down repeatedly and the cursor moves on its own.

    The cursor is rolling along of type I.m

    You do not give much information about what is really happening, but the first two points to check are the mouse and the keyboard, before looking for other hardware or software problems.

    If you have another mouse and keyboard available, you can try reverse the two and restart the computer to see if the problem persists.  If not a little more information would be needed before I could give advice on the best way to solve the problem.

    You're talking about the screen, scroll down and the cursor moving without the mouse - these are two separate actions.

    He is not anywhere on the screen do scroll down unless you have a running program - this scrolling happens with all programs that could scroll, or simply with a certain program?

    The cursor moves randomly or according to a specific orientation?  The cursor move around all the time or only in certain programs?

    These problems occur all the time, or only when you do something, like click with the mouse or use the scroll wheel?

  • Try to scroll to see the folder of photos. I scroll down and the scroll bar jump upward.

    I want to display an image file.  When I scroll down and drop the scroll bar of the jumps back to the top.  I can't access all files below a few albums.  Until I have a chance to click on the folder to open it, the bar rises to the top.

    Hello CathiVanderhave,

    Please provide the make and model of your PC. In addition, please relay if the problem occurs when you try to view other files. You also try to perform a clean boot to verify if a background program may interfere. To do this, please see the link below:

    http://support.Microsoft.com/kb/929135

    Thank you

  • The payment change ADOBE info Web page fails - I can't scroll down to save the changes. My subscription is expired and I am dead in the water! I can't find a support customer portal to this problem - HELP PLEASE!

    I can't scroll down to save the changes. My subscription is expired and I am dead in the water! I can't find a support customer portal to this problem - HELP PLEASE!

    catsrock

    Great salvation,

    We are sorry for the inconvenience caused to you!

    I recommend you contact customer service regarding this issue.

    Kind regards

    Rahul

  • I have need of an arrow or a kind of icon that points and moves to alert the user of the website to scroll down.  Are there widgets or is there a method to move an image in its own.  In addition, how to get my muse Web page to scroll automatically?

    I have need of an arrow or a kind of icon that points and moves to alert the user of the website to scroll down.  Are there widgets or is there a method to move an image in its own.  In addition, how to get my muse Web page to scroll automatically?

    A Google search for "animated gifs arrows" returned hundreds of animated arrows.

  • Why scroll down and ctrl + end doesn't work?

    Nice Hello Pals, (my apologies if I am too naïve in asking to our)

    I am currently evaluating Adobe Robohelp 10 version for one of my writings of technical architecture. Requesting assistance to the earlier hedges high time below Said.

    I compiled the content/manual written in with the permission of the design editor file -> Generate -> main layout (Multiscreen HTML5...). The main provision gets courtesy given file -> display -> main layout. On the display of the main layout to contents or Index , Glossary, robohelp system does not provide with any option of scrolling down , or <Ctrl + end > works for me and proving the major handicap display the content available at the bottom of the page. But <Ctrl + F > conclusion by these words takes me to the desired part of the screen and then < Ctrl + home > does not work.

    (tried to attempt some research and analysis by updating my browser IE 8 to IE 10: does not)

    Any help here will serve me to plentious

    Sorted now?

    See www.grainge.org for creating tips and RoboHelp

    @petergrainge

  • How to stop the Notes app, scroll down to the opening

    I have an iPhone 6 s, IOS 9.3.2.

    The Notes application scrolls down when opening a Note.

    It was not used to do.  I don't like it!  Most of the time, I add a text near the top of the file.

    How can I stop scrolling down when I opened an existing note?

    I looked for a setting, but found nothing.

    just checked on the iPhone 6 + - it does not scroll down

    Do a forced reboot - after all open applications using the app Chooser - invoked by fast double pressing the home button and drag upwards on each app until it disappears from the screen.

    Meet the sleep/wake and home buttons down until you see the logo  - then release and allow normal start upward

  • When I tried to scroll down on Facebook my page size, you will be the smallest that I scrolled down, why?

    Try scrolling down while Facebook and the size of the reduced entire page down, and even it can be read. This isn't a problem, when I tried to use another browser.

    You can have pressed the Ctrl key and the page zoom out.

    Reset the page zoom on pages that cause problems: view > Zoom > reset (Ctrl + 0 (zero); Cmd + 0 on Mac)

  • How can I get my SPACEBAR to stop acting like a scroll down button?

    I played a little flash game from the internet in Windows Explorer and sort, I pressed something on the keyboard that made my space bar turn into a scroll down button.  I tried to restart the computer, but it did nothing.  I have no idea of what I've tried to do this and I can't find a way to reverse the trend.  Help, please!  Thank you.

    In many applications and browsers by pressing the space bar (when you're not in a situation of entering text) causes a scroll down. When your mouse cursor is focused on a text box, or when you type in a word processor that work by default is disabled. You were able to type this question with spaces should scroll? If so, maybe you could try the system restore.

    System Restore: frequently asked questions
    http://Windows.Microsoft.com/en-us/Windows-Vista/system-restore-frequently-asked-questions

  • BlackBerry Pearl smartphones will not scroll down

    the Pearl will not scroll down.  It scrolls up and both sides.  all the patches?

    Yep, press down FIRMLY and scroll IN the direction the trackball does not want to move.

    This erases the link and impede traffic, usually collected to carry in your pocket or your bag of dust.

Maybe you are looking for

  • Sonic activate the module popping error at startup guard

    The question preceding above is correct.  Activate Sonic module drives me crazy.  Please to eliminate this problem. Thank you Alyne B may E-mail address is removed from the privacy *. Original title: sonic activate the module continues to appear. How

  • E1-531-2801 Acer CPU compatibility list

    I was wondering if anyone had a list for what this laptop supports the processor. Processor: Intel B820 (1.7 ghz Dual-core) TDP: 35W Socket: G2 Microarchitechture: Sandy Bridge List of G2 processor socket:http://www.CPU-world.com/Sockets/socket%20G2%

  • McAfee file is not found when I try to start the services stopped in the Computer Management Console.

    McAfee services ceased.  When I go to Services and try to start I get an error 2, "the file is not found."  I look in the programs and the file seems to be there.  I believe that the services were stopped due to Game Booster (which has stopped some s

  • Windows Vista Home Premium boot issues

    I have Windows Vista Home Premium on HP Compaq computer. He was doing all the updates automatically. However, for this, not auto.now updates and when I run the compuetr it rises for blue screen with all the icons. But, immediately, it gives me messag

  • Problem loading Z2

    Hello, I have a strange problem when using sony Z2. I took a lot of pictures of her, but when I plugged my charger to charge, all my photos deleted and settings has been reset to new it's so boring... do you have a solution for this? Please answer