stop scrolling background image

Hello

In my application, I used a custom manager that contains the listField object. The problem is that when I scroll through the on-screen image begins to repeat until the length of the list (which is dynamic). I don't want the wallpaper to scroll but I don't want the nursery and its content to scroll on the same single image.

Can u please help me?

Thanks in advance

Hi and welcome to the forums!

I recommend that search you the forum (using the search service you will see near the top right) to get answers to your question before posting.  Especially when you're new, someone else will be asked the same questions.  In fact, there are a number of similar threads on the forum and this article:

http://supportforums.BlackBerry.com/T5/Java-development/use-a-background-image-in-application-screen...

have a look at this and other Threads you will find and come back if you cannot fix yourself.

Good luck.

Tags: BlackBerry Developers

Similar Questions

  • Scrolling Background Image

    Hi all

    I added the background image on the screen, but the problem is, if I scroll the background image Monte

    and the white screen appears in the background .is there anyway to scroll to the bottom of the background image

    Concerning

    Yogi

    Have you checked these threads.

    http://supportforums.BlackBerry.com/T5/Java-development/about-background-images-and-layouts/m-p/2443...

    http://supportforums.BlackBerry.com/T5/Java-development/drawing-bitmap-in-mainScreen-background/m-p/...

    Concerning

    Bika

  • How to create a no with scrolling background image

    I searched a lot on the forum and able to paint my background either by overriding methods of painting/paintBackground of the screen or the Manager. But the background is still floating, which means that when the screen scrolls down, the background goes back and white space appears.

    My question is, how do I make the fixed background image?

    Have you checked this post?

    http://supportforums.BlackBerry.com/T5/Java-development/about-background-images-and-layouts/m-p/2442...

    T

  • Scrolling doesn't stop on the lower edge of browser if background image is larger (Version 2015.1)

    I've just upgraded to the new Muse-Version 2015.1. Now it seems that when editing my site Web (overview and catalyst) scrolling doesn't stop down browser.

    Scrolling does not stop until the edge of the background image is reached (which is greater than the content).

    Unfiltriert | Kontakt

    ScreenShot_01.jpg

    It's a little hard to tell from the screenshot, but it seems that you have not set filling of the Page or the browser fill and drew instead of boxes and filled fo the semi-transparent box page, and the graphic that is in the background, or perhaps it is a placed image arranged behind everything else? If Yes, it is certainly not what you want to do the filling of browser and you'd probably also be better to use the filling of the Page.

    Click on the words "Browser-deflector" and then click on the folder icon to set a browser fill for your background image, select delete the image that is currently in the background so you can see filling of the browser.

  • background image stops repeating leaving white areas in my top banner page

    I have a banner built using three images. One to the left, the right image, and a third which should tile between the left and right images.

    In IE, it works very well, in Firefox, it stops tiling and leave a small area white when displayed on the very wide screens (mine is 1920 x 1080). He thin tiles on smaller screens of width.

    The site is www.shophutchinsonmn.com

    The cell with the ditch does not have a background image. To confirm, try this:

    (1) display the Console high Web page by pressing Ctrl + Shift + k

    (2) add borders to cells in the table by pasting this code and press ENTER:


    document.querySelector("table").setAttribute("border","1");

    (3) resize the window between 1400 and 1450 to open/close the gap

    (Note: seen on a screen of 1600 x 1050)

  • MacBook Pro stops when the lid closes, loses the open tabs and background image...

    Hi all

    I recently had a new hard drive installed in my 2012 13-inch MacBook Pro. I am running El Capitan 10.11.2. Since then, my computer cuts automatically to the bottom when the lid is closed, losing all Web pages, and for some reason, some background, I've saved. (My browser is Mozilla Firefox and it prompts you to restore me the tabs lost, which he will).

    The led standby does not blink or light up when the computer is turned on, it will turn on only at startup. At startup, the login page is displayed, and after that I entered my password it takes about 15 to 25 seconds to load and open my account. What is going on?!

    Summary:

    Stop when the lid is closed,

    Loses the background image & open Web pages.

    Standby blinks only when starting,

    Time of loading extended after logging into my account.

    Any help would be greatly appreciated! Thanks a lot for reading.

    uhlexia wrote:

    Hi all

    I recently had a new hard drive installed in my 2012 13-inch MacBook Pro. I am running El Capitan 10.11.2. Since then, my computer turns off automatically when the lid is closed.

    Take it back to the repair as well as your receipt of repair shop.  Apple has a 90 day warranty on all repairs.

  • Background image of display and scrolling VFM

    Right now, I'm stuck trying to give the desired result work on my screen. I already know the basics of adding a background to a Manager (value bit flags USE_ALL_WIDTH and USE_ALL_HEIGHT so that paint void). However, I must also deal with a child growable VFM attached to the screen can scroll if the height is greater than the height the screen less the height of the top banner field. What I want to achieve is the following: having a screen that does not scroll with a background image that is attached to the dimensions of the screen less field height of the banner (first low-level with the BG Manager). However, I want the VFM child to be able to scroll if necessary while the BG image is displayed in the background. Here's what I have so far to my constructor:

    public MyMainScreen(){
       super( NO_VERTICAL_SCROLLBAR );
       VerticalFieldManager myVFM = new VerticalFieldManager(
                                    VerticalFieldManager.USE_ALL_WIDTH
                    | VerticalFieldManager.NO_HORIZONTAL_SCROLL
                    | VerticalFieldManager.NO_VERTICAL_SCROLLBAR
                    | VerticalFieldManager.FIELD_TOP
                    | VerticalFieldManager.TOPMOST
                    | VerticalFieldManager.BOTTOMMOST );
       setBanner(myBannerField);
       //fields are added to VFM.....
    
       VerticalFieldManager bgManager = new VerticalFieldManager(
                                    VerticalFieldManager.USE_ALL_WIDTH
                                    | VerticalFieldManager.USE_ALL_HEIGHT
                                    | VerticalFieldManager.NO_VERTICAL_SCROLL){
               public void paint(Graphics g){
                  //my BG gets drawn here...
                  super.paint(g);
               }
       };
       bgManager.add(myVFM);
       add(bgManager);
    }
    

    So, I just need to know if I'm doing something wrong here. Of course, it may be obvious to some, but for some reason that I'm completely stumped. Thanks in advance.

    Tried again without the substitution of sublayout, and he managed to work given my VFM populating routines, because the domain in question (HFM) that is updated is added without all the fields added initially, so my VFM has all the fields, it needs at that point to have himself. You're right, if I wanted to complex me and choose to place the fields of optimization of resources on particular points, it would be wise to replace sublayout and define to what extent, accordingly, but in this case, it works fine without it. Anyway, the people, the answer today is that your screen does not scroll by setting super (NO_VERTICAL_SCROLLBAR |) NO_VERTICAL_SCROLL) in the constructor, however, if you want the custom vertical scrolling on your VOR with BG, you must set to vertically, do scroll down and use the height by passing the following style bits:

    VerticalFieldManager.USE_ALL_WIDTH
    | VerticalFieldManager.NO_HORIZONTAL_SCROLL
    | VerticalFieldManager.VERTICAL_SCROLL
    | VerticalFieldManager.NO_VERTICAL_SCROLLBAR
    | VerticalFieldManager.USE_ALL_HEIGHT

    then you replace paintBackground appeal of this optimization of the resources any desired call paint and that's it.

  • Background image disappears when the user scroll down

    Hello

    Here is a class that paints a picture as desktop wallpaper. My problem is that if a vertical scrolling is on the screen, when scrolling down the background image does not scroll also. Is it possible to repeat the background so that it is always on the screen when the user scrolls down.

    Thank you.

    SerializableAttribute public class BaseVerticalFieldManager extends VerticalFieldManager {}
        
        
    public BaseVerticalFieldManager (long style) {}
    Super (style);
    }

    Public Sub paintBackground (Graphics graphics)
    {
    graphics.drawBitmap (0, 0, Display.getWidth (), Display.getHeight (), Constants.BACKGROUND_IMAGE, 0, 0);

    }
        
    }

    adrianeireyahoo wrote:

    Public Sub paintBackground (Graphics graphics)
    {
    graphics.drawBitmap (0, 0, Display.getWidth (), Display.getHeight (), Constants.BACKGROUND_IMAGE, 0, 0);

    }

    The values highlighted are wrong - you need to keep track of the Manager scroll position. In addition, using Display.getWidth () and Display.getHeight () isn't exactly smart - use getWidth() / getHeight() Manager itself.

    In short, the correct code would be:

        public void paintBackground( Graphics graphics)
        {
            graphics.drawBitmap(getHorizontalScroll(), getVerticalScroll(), getWidth(), getHeight(), Constants.BACKGROUND_IMAGE, 0, 0);
        }
    
  • Background image with scrolling not for the screen

    Hi all.

    I use the following code to make the background dropdown not image, and it works for all BlackBerry Storm2 (OS 5.0) except (I tried it on a simulator):

    public class MyScreen extends MainScreen{
    
    ...
    
        public MyScreen() {
           super(NO_VERTICAL_SCROLL);
           bitmap=loadBG();       super.add(mContainer = new BGVerticalFieldManager(bitmap));
        }
        public void add(Field field){        mContainer.add(field);    }...
    
    }
    
    public class BGVerticalFieldManager extends VerticalFieldManager {
        Bitmap mBgBitmap = null;
        int mBgWidth = -1;
        int mBgHeight = -1;
        int mBgX = -1;
        int mBgY = -1;
    
        public BGVerticalFieldManager(Bitmap background) {
            super(USE_ALL_WIDTH | USE_ALL_HEIGHT | VERTICAL_SCROLL
                    | VERTICAL_SCROLLBAR);
            mBgBitmap = background;
            mBgWidth = mBgBitmap.getWidth();
            mBgHeight = mBgBitmap.getHeight();
            mBgX = (Display.getWidth() - mBgWidth) >> 1;
            mBgY = (Display.getHeight() - mBgHeight) >> 1;
    
        }
    
        protected void paintBackground(Graphics graphics) {
            paintBackgroundBitmap(graphics);
        }
    
        protected void sublayout(int maxWidth, int maxHeight) {
            mBgX = (Display.getWidth() - mBgWidth) >> 1;
            mBgY = (Display.getHeight() - mBgHeight) >> 1;
            super.sublayout(maxWidth, maxHeight);
        }
    
        private void paintBackgroundBitmap(Graphics graphics) {
            if (null != mBgBitmap) {
                int x = mBgX
                        + getHorizontalScroll();
                int y = mBgY
                        + getVerticalScroll();
                graphics.drawBitmap(x, y, mBgWidth, mBgHeight, mBgBitmap, 0, 0);
            }
        }
    
    }
    

    The Storm2 scrolls the background image, looks that getVerticallScroll() does not work.

    Can someone help me with this?

    Thank you.

    also have glance at this:

    http://supportforums.BlackBerry.com/T5/Java-development/use-a-background-image-in-application-screen...

  • Problem with background Images and scrolling

    I had to face for a while to get background pictures are working properly. Here's what I do:

    VFM VerticalFieldManager = new VerticalFieldManager();

    Card of bitmap = Bitmap.getBitmapResource ("MyImage.jpg");

    Background bg = BackgroundFactory.createBitmapBackground (map);

    vfm.setBackground (bg);

    This works, but has entrapment. First of all, he painted only as much as you have fields too much room, so I have to add empty fields just to occupy vertical space. However, on a page with something like a listField, where the height is variable, this can lead to what the background image are starting to repeat and to allow scrolling.

    What I want to do is to block all the scrolling and have the training exactly fill the screen with no scrolling or white empty places.

    I'll just on this wrong? Would really love to help...

    Hello

    Hope this will help you.

    class LoginScreen extends MainScreen {    //Manager        private VerticalFieldManager _manager;
    
        LoginScreen() {        //Set Background image            _manager = (VerticalFieldManager)getMainManager();            Background bg = BackgroundFactory.createBitmapBackground(Bitmap.getBitmapResource("back.png"));            _manager.setBackground(bg);
    
       }}
    

    Add this manageron your screen don't add any component in this handler.

    You add fields in the Manager of the other, and adds that the Manager on the screen.

    Let me know if this solves your problem or not.

  • Whenever I have shut down my computer, it displays a popup saying to close the background image and then it stops.

    Original title:

    Whenever I have shut down my computer, it displays a popup saying to close the background image and then it stops. Should what settings I change so that does not happen?

    Hello

    1. What is the brand and model of the computer?

    2 have you made any changes to the computer, before the show?

    Method 1:

    Perform a clean boot and check.

    How to troubleshoot a problem by performing a clean boot in Windows Vista or in Windows 7

    Note: Once you are done with the boot, follow step 7 of article to reset your computer to normal startup.

    Method 2:

    Change the wallpaper and check.

    Change your desktop background (wallpaper)

  • 100% width background images do not appear in chrome when I apply scroll effects. Please help someone

    Since the last update to dream my 100% width background images do not appear in chrome when I apply scroll effects. Does anyone else have this problem? They work on all other platforms, but not chrome. I talked with adobe and they said basically their cant be a problem on their end because no one else has not complained.

    problem solved, it's adding css that I included in the site

  • Background images that change with scrolling, just how do you?

    These fabulous sites, were presented on the Muse Adobe Site of the day

    http://www.StreetReach.org/

    http://www.lauranet.nl/

    Brilliant sites. What they have in common is a background image (of all kinds) which changes with scroll, I can't get my brain around how's done it?

    Can someone point me in the right direction?

    Thank you

    Start with some of them:

    http://TV.Adobe.com/watch/Muse-feature-tour/Adobe-Muse-Parallax-scrolling-may-2013/

    www.YouTube.com/watch?v=5OOLEztI-so

    www.YouTube.com/watch?v=8m2Lg241e3A

    www.YouTube.com/watch?v=gZI_K1TXqOM

    I got these (and MANY others) by Google, "scrolling Parallax of the Muse.

    Good luck.

  • How can you make a background image change to a State faded at some point in scrolling?

    I am referring to a technique that I have seen used in the relevant Magazine iPad app if someone used it. I understand having a shape behind text that presents a gradient feathers and when you scroll down the form vanishes little by little the background image. But this is not the effect I'm trying to achieve. On some articles, the screen is a complete image and when you scroll type to the top, the bottom everything fades away when you scroll up to a point.

    I tried to search for hours, but I feel that I don't get the case because I don't really know what to look for. I feel like it requires something else than DPS is capable of. I hope this makes sense and I would be very happy to suggestions and help!

    Thank you!

    Try to apply the gradient of feathers to the structure of content scrollable, not the backstory. It will appear to change the color of the shading.

  • site will not scroll with image background css

    I'm starting a new Web site in dreamweaver cs3... the test site would not scroll when too large for the screen. I have reduced the image background and location, but it is a bit small. First of all, the optimum size for a site... So how to scroll...

    The background image is in the css code.

    {body
    color: #c3300;
    font-size: medium;
    do-family: Verdana, Arial, Helvetica, without serif.
    make-style: normal;
    make-weight: normal;

    background-color: #fff
    background-image: url(images/meadowcroftbkgrd1.jpg);
    background-repeat: no-repeat;

    );
    background-image: url(images/meadocroftbkgrd1.jpg);
    background-color: #FFFFFF;
    }
    a: link {color: #333333; text-decoration: none ;}}
    a: hover {color: #993300; text-decoration: none ;}}
    a: visited {color: #333333; text-decoration: none ;}}

    {p}
    TD {}
    href {color: #c3300; background-color: #fff}

    Here is the url of the site

    http://www.allthegills.com/meadowcroftweb/indextest.html

    If someone could help me that would be great... I've never had this problem before.

    I'm glad it works for you now... Might be good to mark this as answer so these people who are trying to help will not need to click on the thread more.

    --
    
    E. Michael Brandt
    
    www.divahtml.comwww.divahtml.com/products/scripts_dreamweaver_extensions.phpStandards-compliant scripts and Dreamweaver Extensions
    
    www.valleywebdesigns.com/vwd_Vdw.aspJustSo PictureWindowJustSo PhotoAlbum, et alia
    
    --
    

Maybe you are looking for