Management of scrolling problem

Hello

I have a sub VerticalFieldManager class. It shows a picture and some text and components. I show this in 2 ways either direct and via a pop-up screen. It displays directly works fine. For display on a pop-up screen, I added

Super(VERTICAL_SCROLL |) VERTICAL_SCROLLBAR | HORIZONTAL_SCROLL | HORIZONTAL_SCROLLBAR);

But only the vertical scroll works. Horizontal scrolling does not work. I put the picture as

setBackground (BackgroundFactory.createBitmapBackground (picture));

& text in object & components in sublayout. Searching the problem on this site, I found the solution "ScrollingImageRecipe" of St. Peter on http://supportforums.blackberry.com/t5/Java-Development/large-bitmap-image-scrolling-problem/m-p/214...

Now, I view the image in object by using graphics.drawBitmap. By implementing these components added in sublayout are not visible. I guess that the painting is inspired by the componetns image and are not visible.

How to make these visible front? Basically, to display a picure in the background with horizontal & vertical scrolling with text placed in the paint & components available under?

Can someone help me with this problem. Any help is appreciated.

Thank you

Kevin wrote:

Can give you the kind of nickname to treat navigationMovement more clearly and precisely.

Thank you

Something along the lines of:

protected boolean navigationMovement(int dx, int dy, int status, int time) {
  if (dx != 0) {
    int maxScroll = getVirtualWidth() - getVisibleWidth();
    int currentScroll = getHorizontalScroll();
    currentScroll += dx * SCROLL_STEP;
    currentScroll = Math.max(0, Math.min(currentScroll, maxScroll));
    final int targetPos = currentScroll;
    UiApplication.getUiApplication().invokeLater(new Runnable() {
      public void run() {
        setHorizontalScroll(targetPos);
      }
    });
    return true;
  }
  return super.navigationMovement(dx, dy, status, time);
}

Tags: BlackBerry Developers

Similar Questions

  • Text scrolling problem with trackball

                helpField = new LabelField(_text);
                this.add(new NullField(  ));
                this.add(helpField);
                this.add(new NullField(  ));
    

    I have simple help this help displays the text from the screen. Some texts are great for example: 7 k (see code above)

    the problem is that it only shows the first and last page when scrolling of text using the trackball.

    I really need to add the nullField()?

    You can either use a RichTextField and allow to scroll the text and focusing on the characters, or you can manually scroll. There are messages here somewhere on how to manually manage the scroll smoothly.

  • scrolling problem large bitmap image

    City previous forums:

    Comments: comments
    scrolling problem large bitmap image
    Posted: Sep 28, 2007 14:47
     
    I want to scroll through a large bitmap image.i have read previous threads.i have added a null field before bitmap field. But the big picture scrolls, but shows an arrow down.
    Please help me.
    Thanks in advance.

    wang0043

    Messages: 12
    Join date: September 2007

    Re: image to large bitmap scrolling problem
    Posted the: October 1, 2007 03:35
     
    I have the same problem. After testing different ways using the BitmapField, I just changed paint the bitmap on the screen instead. More write the paint method and use drawbitmap to draw the bitmap to the screen. Track action wheelball to paint the bitmap can achieve the effect of view.

    Comments
    Re: image to large bitmap scrolling problem
    Posted the: 3 October 2007 18:10
     
    Can you guys post the code on how it's done?
    Thank you

    Comments: vicky
    Re: image to large bitmap scrolling problem
    Posted the: July 19, 2008 02:33
     
    Hello

    I get the same scrolling image problem. Can you please suggest some way

    thanx

    What kind of manager added the BitmapField to?  The support of the Manager there vertical or horizontal scrolling style defined?

    Here is an example of code that I use to show how to scroll through a screen image:

    Scrolling Image recipe

    The image of "test.png" is in the same folder as the source of java if you want to download that as well.

  • Parallax scrolling problem

    I did experiment with implementation of parallax scrolling on an item in an article in hand coded HTML. It's just an empty div with a background image that moves a little slower than the subsequent divs on the page. The parallax effect works as expected on the desktop and on iOS Safari, but this does not work as expected within the DPS app. I think it's that background Parallax image does not move until I lift my finger on the screen, rather than move while scrolling with my finger. Does anyone have experience with this and possible solutions? Thank you!

    In case anyone else has this problem, it seems that DPS technology handles scroll the way events which the iOS used, not allowing the DOM be handled until the end of the event (when you take your finger off the screen). iOS has managed the scroll events in the right direction since iOS 8, but it seems that the DPS technology is still a little behind. My solution uses iScroll (specifically their script of probe) to keep track of scrolling as it happens and trigger events on parchment, namely my script of simple parallax.

    Here is the link to the iScroll library: iScroll 5, smooth scrolling for the web

  • Scrolling problem

    I have the scrolling problem in netbeans IDE in my macBook pro early 2015 (retina 13 inches), somewhere that is extremely fast cannot see what is happening and in a place more slowly scrolling and not able to fix by increase or decrease scrolling speed of the trackpad in

    sys.pref-> accessibility.

    Everyone please help.

  • HP G60 - 117US LAN adapt will not connect. Vista Ultimate. Manager displays without problem. Can connect wirelessly. Use Nvidia MCP77MV chipset__

    My laptop will be wired adapter not connecting, Device Manager shows no problems

    Hi Baker,

    (a) if it works well before? You get a specific error message?

    (b) don't you recall making any changes to the computer before this happened?

    Connect the laptop to access the internet cable and then try to follow the steps:

    Step 1: check if you are able to receive the IP (Internet protocol) address, run Ipconfig/all at the command prompt.

    Click Start, run, type "cmd" (without the quotation marks), and then click OK to open a MS-DOS command line window. Type "ipconfig/all" (without the quotation marks), and then press the ENTER key.

    ·         Do you have an IP address?

    ·         You get the addressing APIPA (automatic private IP addressing)?

    Ø If the line "Autoconfiguration Enabled' says 'Yes', the 'Auto-configuration IP address' is 169.254.x.y (where x.y is the unique client identifier), then the computer is using AUTOMATIC private IP addressing.

    Ø If the line "Autoconfiguration Enabled' says 'No', while the computer does not currently use AUTOMATIC private IP addressing.

    Note:  With APIPA, DHCP (Dynamic host configuration protocol protocol) clients can be automatically configure an IP address (Internet protocol) address and subnet mask when a DHCP server is not available.

    If you cannot assign an IP address and then try step 2

    Step 2: disable the DHCP (Dynamic host configuration protocol protocol) Broadcast Flag:

     

    Run the fixit available in the link below to disable the DHCP broadcast flag

    Windows Vista cannot obtain an IP address from certain routers or some non-Microsoft DHCP servers

    http://support.Microsoft.com/default.aspx/KB/928233/en-us

     

     

    Important This section, method, or task contains steps that tell you how to modify the registry. However, serious problems can occur if you modify the registry incorrectly. Therefore, make sure that you proceed with caution. For added protection, back up the registry before you edit it. Then you can restore the registry if a problem occurs. For more information about how to back up and restore the registry, click on the number below to view the article in the Microsoft Knowledge Base:

    How to back up and restore the registry in Windows

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

     

    Let us know if it works

    Thank you, and in what concerns:

    Ajay K

    Microsoft Answers Support Engineer

    Visit our Microsoft answers feedback Forum and let us know what you think.

  • VBox inside ModuleLoader scrolling problem (w / screenshot of show)

    I have a VBox that scroll when even if the project runs as an Application, it works perfectly. I have then to modify the Application of a Module and load it into a parent using ModuleLoader app. As soon as I did that, the scrolling no longer works correctly. See screenshot

    http://www.jetScreenshot.com/demo/20090428-375-225kb.jpg

    I've also included this issue a bug introduced here:

    http://bugs.Adobe.com/jira/browse/SDK-16394

    Anyone ran into something like that with ModuleLoader? The controls are nested like this (if it is of any help):

    Main application

    ViewStack

    Box of

    Group of experts

    ModuleLoader

    Module

    VBox

    ViewStack

    VBox <-it's the Vbox with scrolling problems

    HBoxes children

    It almost seems that these events in the loaded Module are blend with the rest of the application. I have tried several things to rememdy this.

    Any ideas or suggestions would be very appreciated.

    No idea why full screen would help me.  You say that the module is loaded after you go fullscreen?  Otherwise, go to full screen can cause an update which is not the case in normal mode.  Or maybe something about the arrangement grows on a minimum size when you are not in full screen.

    Alex Harui

    Flex SDK Developer

    Adobe Systems Inc..

    Blog: http://blogs.adobe.com/aharui

  • problem with the vertical field Manager / vertical scroll

    Hello

    I've set up a screen which makes use of a vertical field Manager by using the following code:

    class Main_Menu extends MainScreen {
    
        public class FixedWidthButtonField extends ButtonField{
            private int width;
    
            FixedWidthButtonField( String label, int Width){
                super( label, Manager.FIELD_HCENTER);
                width = Width;
            }
    
            public int getPreferredWidth(){
                return width;
            }
        }
    
        public Main_Menu() {
            setTitle(new LabelField ("Main Menu Screen", Field.FIELD_HCENTER));
            setStatus(new LabelField ("Breakout Game ©", Field.FIELD_HCENTER));
            VerticalFieldManager backgroundManager = new VerticalFieldManager(Manager.USE_ALL_WIDTH|Manager.USE_ALL_HEIGHT|Manager.NO_VERTICAL_SCROLL)
            {
                protected void paint(Graphics graphics) {
                    graphics.setBackgroundColor(0x0000A2E8);
                    graphics.clear();
                    super.paint(graphics);
                }
            };
    
            FixedWidthButtonField playButton;
            FixedWidthButtonField instructionsButton;
            FixedWidthButtonField topScoresButton;
            FixedWidthButtonField quitButton;
    
            playButton = new FixedWidthButtonField("Play",(Display.getWidth() / 2) - 80);
            instructionsButton = new FixedWidthButtonField("Instructions",(Display.getWidth() / 2) - 80);
            topScoresButton = new FixedWidthButtonField("Top Scores",(Display.getWidth() / 2) - 80);
            quitButton = new FixedWidthButtonField("Quit",(Display.getWidth() / 2) - 80) {
                protected boolean navigationClick(int status, int time)
                {
                    getScreen().close();
                    return true;
                }
            };      
    
            playButton.setMargin(40,0,0,0);
            backgroundManager.add(playButton);
            instructionsButton.setMargin(10,0,0,0);
            backgroundManager.add(instructionsButton);
            topScoresButton.setMargin(10,0,0,0);
            backgroundManager.add(topScoresButton);
            quitButton.setMargin(10,0,0,0);
            backgroundManager.add(quitButton);
    
            add(backgroundManager);
        }
    }
    

    The problem I have is that the screen scrolled down to see the empty space after the final touches, and I can't seem to overcome this problem and prevent additional scrolling. I just want the ability to scroll the 4 buttons and have a blue background on the entire screen.

    Thank you

    Just quickly, so watch migth have wrong, but if you have a good overview of this very useful article:

    http://supportforums.BlackBerry.com/T5/Java-development/MainScreen-explained/Ta-p/606644

    I think you will find that you need to add the following at the beginning of your screen manufacturer:

    Super (NO_VERTICAL_SCROLL)

  • VerticalField Manager Custom Image display and scrolling problem

    I have the following code, which does a great job to display my buttons and text in my 8530.  The problem I have is when I view it on another phone the image goes all the way to the bottom of the screen (for example on a 9550 sim card).  When I add the value of Field.USE_ALL_HEIGHT that the image goes all the way to the bottom of the screen, but when I scroll down to close I see lots of whitespace below of the image with the button close all the way to the top.  I tried to create a manager of sinople not floating with the background image and put the buttons on a second, assigning it to the first with no luck.  How can I get so there is not any white space below the image? Thank you

    ///////////////////////////////////////////////////
    Creates the button and the text on the main screen
    VerticalFieldManager vor = new VerticalFieldManager(Field.USE_ALL_WIDTH |)
    VerticalFieldManager.VERTICAL_SCROLL |
    VerticalFieldManager.VERTICAL_SCROLLBAR |)
    {
    Override the paint method to draw the background image.
    public void paint (Graphics graphics)
    {
    Draw the background image, then call super.paint to paint the rest of the screen.
    graphics.drawBitmap (0, 0, Display.getWidth (), Display.getHeight (), bgImage, 0, 0);
    Super.Paint (Graphics);
    }
    };
                               
    LabelField para_1 = new LabelField ("mark your location, then"+ ")
    'generate a route back to this place.
    LabelField.FIELD_HCENTER);
    LabelField para_2 = new LabelField ("* you must Access to GPS *")
    LabelField.FIELD_HCENTER);
    vFM.add (para_1);
    Fnt font = this.getFont () .derive (Font.BOLD);
    para_1.setFont (FNT);
    vFM.add (para_2);
    vFM.add (viewCurrentLocBTN);
    vFM.add (viewMarkCurrentLocBTN);
    vFM.add (markCurrentLocBTN);
    vFM.add (routeBackBTN);
    vFM.add (closeAppBTN);
    This.Add (vFM);
    ///////////////////////////////////////////////////

    Thankss!  After reading the reference that I realized what I had to change this

    Super();

    to do this at the beginning of the method that creates the screen

    Super (NO_VERTICAL_SCROLL);

  • T460s scrolling problem

    Hello

    My problem is that two fingers scrolling becomes really slow right after you use the trackpoint to scroll middle button. To get two fingers to scroll at its normal speed, I need to finish the task "Synaptics TouchPad 64-bit improvements" in the Task Manager (effectively restart the task). But using the trackpoint for scrolling goes off two fingers of slow scrolling. Since I want change between using the trackpoint and the trackpad, it's pretty boring.

    The problem only occurs when you use the "Use to scroll" option under "Middle Action button" in the mouse settings. There is no problem when you use the "Use as a middle-click" option instead.

    I'm under 10 64-bit Windows, and I use the latest version of the driver Synaptics ThinkPad UltraNav (19.0.17.77). The problem occurred also with a previous version of the driver (I had the T460s for 2 weeks and the issue has been there since I got it). A reinstallation of the driver does not resolve the issue. All other drivers and bios must be up-to-date.

    Any ideas on how to solve this problem?

    In response to unexpected scrolling customer relationships and behavior of touchpad on ThinkPad, Lenovo T460s has published a solution via the driver update.

    Synaptics ThinkPad UltraNav Driver, version 19.0.17.98, can be downloaded here: http://support.lenovo.com/us/en/downloads/ds111814

    Thank you

  • scrolling problems, running of the depot, retro-typing and cursor and windows boxes freezing in the process of disappearance. Help!

    I have a dell vostro 1000 laptop with windows Vista Basic program. I aggravating problems with scrolling, on each program Web site. I have mozilla firefox, chrome, IE I started to scroll down a page and he yanks back the Summit. This also happens offline. I feel like a tug of war. The other problem is the flashing running drop boxes. When I go to lets say google and I click on the search box type it then starts flashing and hurtling previous search words. It is difficult to stop this. right now I have some difficulties to type this question because I'm going to type a few words and then the cursor disappears also a previous sentence. Sometimes when I go to type a word in the search type box the first letter and then the cursor will return to the leading space and adds the letters before the first letter of the word. I feel like sometimes I write backwards. Oh! time comsuming. It does also offline. I have a wireless keyboard and mouse that I sometimes use the mouse works, then suddenly, the page is pulled to the top and I can only It control a few times with the arrow keys on your laptop. Sometimes, this work and others do not. My AutoFill will in to fill out the forms but the name, the address box etc. will follow down the rest of the form and I do not see other issues. I tried Control Panel for mouse problems and the keyboard and settings sometimes move for the reason so I can't set some options. Can someone please help me I've been struggling with this problem for over a year.

    Hi Butterfly3,

    Welcome to Microsoft Vista answers Forum!

    ·         Does the problem occur even when working with other programs such as WordPad and Notepad?

    (A.) it can happen that if drivers are not updated, you may update the drivers for keyboard and mouse on your machine, see steps to update the drivers:

    (i.) click Start > type in Device Manager in the start search > expand the keyboard and the mouse in Device Manager > right click on drivers > click Properties > click on the driver tab > click on update drivers > click OK.

    Now, restart the computer and check if the keyboard and mouse works fine without any problems.

    (B) if the problem persists, you may need to perform the analysis antivirus on the computer.

    You can also perform a complete analysis of the Service from the link: http://safety.live.com

    A.) you can also check by reducing the hardware acceleration on your computer, follow the steps below to reduce hardware acceleration:

    (i.) click Start > click Control Panel > click on appearance and personalization > click personalization > click on display settings > click Advanced settings > click the Troubleshooting tab, and then click on change settings.

    Note: The settings will be disabled if the graphics card driver does not support disabling hardware acceleration.

    Move the hardware acceleration slider until it is one notch to the right of none. It is the basis of acceleration.

    Click OK twice, and then close the window.

    (B) I suggest that you might have to reset the internet settings explorer explore on your computer, download the Microsoft Fix - it of the link which automatically resets the default browser settings, see the link: http://support.microsoft.com/923737

    Hope this information is useful.
    Let me know if it worked.
    All the best!

    Thank you, and in what concerns:
    Swathi B - Microsoft technical support.
    Visit our Microsoft answers feedback Forum and let us know what you think.

  • Move the focus from the listfiled to the particular label (horizontal scrolling problem)

    Hello

    In my application, I have some labels (which are focusable) at the top of the screen that I put in the manager (hfm_lbl) horizontal field with horizontal scrolling.

    After hfm_lbl, I have a listfiled.

    Now when I scroll to the top of the listfiled (i.e.from from bottom to top), the focus moves to top but sets the last menu of the hfm_lbl.

    I want the focus to specify the label of perticular.

    Any help is appreciated...

    Thank you...

    drawFocus won't help with this.

    The problem is only a HFM, when focus activates it by underneath, will automatically set the focus to the last item in the list.  Therefore, substitute this transformation.

    There are actually two options, depending on whether you want to override the onFocus method, or use a FocusChangeListener. I know that some people have had problems with the onFocus() substitution, so recommend the listener. But I never have, so after you will find a sample of the code that I use in this circumstance.

    The thing is that the treatment in the HFM should remember the lastFocusField (one of your labels) when the focus is moved there.  This challenge, I'll leave with you.  Still, he has a variety of options and not better.  So whatever you think probably will work fine.  One option is to set the HFM as a FocusChangeListener for all the domains that are added and then remember the last one, who won the point - then the treatment is autonomous in the HFM.

    The following codes assume that lastFocusField is a field in the HFM, one user had developed on before the ListField moved t.  This method overrides onFocus() in the HFM.

    protected void onFocus (int direction) {}
    super.onFocus (branch);
    If (direction! = 0 & lastFocusField! = null) {}
    UiApplication.getUiApplication () .invokeLater (new Runnable() {}
    public void run() {}
    lastFocusField.setFocus ();
    }
    });
    }
    }

    Edit: I think that Simon and I had to answer at the same time.  Just to say, in my experience in this case, you might be able to do it with moveFocus(), or navigationMovement(), but not as easily as onFocus().

  • 5.0 inertial scrolling problem

    Hi, I'm trying to understand why this bug seems to occur in one of my programs on a Storm 2. First of all, some simplified code to reproduce the problem.

    public class MyScreen extends FullScreen {
    
        public MyScreen() {
            this(new VerticalFieldManager(VERTICAL_SCROLL | VERTICAL_SCROLLBAR));
        }
    
        protected MyScreen(VerticalFieldManager manager) {
            super(manager, 0);
    
            add(new RichTextField("First item"));
            add(new RichTextField("item 2"));
            add(new RichTextField("item 3"));
            add(new RichTextField("item 4"));
            add(new RichTextField("item 5"));
            add(new RichTextField("item 6"));
            add(new RichTextField("item 7"));
            add(new RichTextField("item 8"));
            add(new RichTextField("item 9"));
            add(new RichTextField("item 10"));
            add(new RichTextField("item 11"));
            add(new RichTextField("item 12"));
            add(new RichTextField("item 13"));
            add(new RichTextField("item 14"));
            add(new RichTextField("item 15"));
            add(new RichTextField("item 16"));
            add(new RichTextField("item 17"));
            add(new RichTextField("item 18"));
            add(new RichTextField("item 19"));
            add(new RichTextField("last item"));
        }
    
        protected void paintBackground(Graphics g) {
            g.drawBitmap(0, 0, 480, 360, Bitmap.getBitmapResource("backgroundImage.png"), 0, 0);
        }
    }
    

    The new inertia scrolling seems to be the cause of my background scroll when I intend to let him remain in place. It ends by leaving pieces of the background in the places, that is not because I think that the VerticalFieldManager pulls effectively only the parts that need to be redrawn. I also tried to paint the background in painting, then by calling paintChild (g, manager), but it has the same problem.

    Is it possible to set up the Manager so that he knows is not to reach the bottom as well?

    Thank you

    David

    I think I have a similar problem. In one of my screens I use some RichtTextFields at the top of the screen and the rest of the screen if taken by a BrowserField. If the BrowserField is longer than the screen as the top is sometimes distorted. The solution that works for me is to add a ScollListener in the constructor of the screen that invalidates the screen when the user makes a scrolling:

    getMainManager().setScrollListener(new ScrollChangeListener() {  public void scrollChanged(Manager manager, int i, int j) {    invalidate();  }});
    

    Maybe it works for you as well?

  • 12 c: table scrolling problem?

    Hello!

    I am facing a strange probleam after migrating my application to 12 c (12.1.2.0.0). All the scrolling tables are too slow when the cursor point is on the contents of the table, but if the cursor is above the scroll bar, the speed is very good.

    PS. : Chrome scrolling is fine, just to IE10 and Firefox are slow.

    THX,

    Alexandre Rocco.

    Finally I managed to solve this problem

    I just added! important' CSS property, so this will overwrite the style that has been defined in the HTML code

    AF | : the table-body {} data

    position: static! important;

    }

  • Display when the mouse scrolling problem

    Hello

    Since this morning (and the most recent upgrade apparently) I feel serious display problems when scrolling with my mouse upwards or downwards on a Web site: the whole text and other components of the page is displayed to the left or to the right and becomes so blurred that it is completely unreadable. The same problem is encountered on all Web sites visited

    Operating system: Windows XP Professional version 2002 - SP3
    Firefox Version: 26.0
    Screenshot of the number: http://i43.tinypic.com/2r3vz81.jpg

    I tried to:

    -create a new Boolean value called "layout.paint_rects_separately" (without the quotes) and set the value to true
    -Implementation gfx.content.azure.enabled; false
    -Implementation gfx.direct2d.disabled; true

    -Disable all add-ons

    Any of these changed nothing to my problem.

    Any suggestion on how to fix this is welcome.

    Try disabling hardware acceleration in Firefox.

    https://support.Mozilla.org/KB/upgrade-graphics-drivers-use-hardware-acceleration

Maybe you are looking for