Background picture not visible in its entirety, WHY?

Hello

I want to add an image to the background of my screen. Here's how I did:

class MyScreen extends MainScreen {

   public MyScreen() {
        XManager manager =  new XManager(background);
        add(manager);
        manager.add(gfm);
        manager.add(closeBtn);
   }

    class XManager extends VerticalFieldManager {
        Bitmap mBgBitmap = null;
        int mBgWidth = -1;
        int mBgHeight = -1;
        int mBgX = -1;
        int mBgY = -1;
        int width = Display.getWidth();
        int height = Display.getHeight();

        public XManager(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);
            super.paintBackground(graphics);
        }

        private void paintBackgroundBitmap(Graphics graphics) {
            if (null != mBgBitmap) {
            graphics.drawBitmap(mBgX, mBgY, mBgWidth, mBgHeight, mBgBitmap, 0, 0);
            }
        }
    }   //  // End of XManager Class
}  // End of MyScreen class

With this code, the background image is delivered, but only half of the screen. Even if the components arte fill full screen, yet the image is only half screen.

I tried VirtualKeyBoard.Hide before initializing XManager, but has not made all the difference.

Can anyone tell why I am facing this problem and how to fix it. I also added scrollbars.

Thank you

Hello

I found the solution to the problem and thought to share with everyone.

RexDoug, this is the code that creates the problem - as I said that the same code is used in other surveys of job perfectly well. Had problem with specific screen2.

In my Screen1, I had also added FlowFieldManager with 3 buttons and I used to get the keyboard on screen1 also. Due to some factors, 3, 1 button is removed all time so only 2 are there. And now, I have only 2 buttons, I don't see the keyboard on Screen1 and also to see the images in full screen on screen2. If I still 3 buttons on screen1, again, I see the same old scenario. Cannot distinguish the reason for this behavior.

Thank you best regards &,.

Tags: BlackBerry Developers

Similar Questions

  • Background image, do not tile in its entirety on mobile

    Hi all

    So I chose an image of tiles for my site and it behaves as it should on a desktop or a laptop, but when I look on my cell phone the tile ends abruptly before it touches the bottom of the screen, leaving a large white space.

    Here is my site: http://Hi-tide.org/

    Is someone can confirm that this tiling problem on their phone, and if so, how can I solve this?

    Thanks a lot,


    Alex

    I can, but probably wouldn't you...

    You will need to learn positionner position elements using css floats, margin and padding instead of position: absolute (which is what use APDivs).

    Absolute positioning has its uses, but in the vast majority of cases, there is no reason for him and giving an element that a float with some margins and padding will get it to the same location, with the added advantage of being more flexible and fluid for sizes of ever-changing display thousands of devices used today looking at Web sites.

    For what it's worth, APDivs have been removed from DW because of the problems they create, especially for new designers, trying to create a responsive design.

  • My background is not visible?

    Can I change the color and see my taskbar and icon shortcuts. I tried all possible ways change the background color of an image but it dose not work please halp. I have a Dell Inspiron 530 with processor Intel Pentium dual core Prossesor Running Windows Vista Home premium 32 - bit operating system Service Pack 23.00 GB Ram. Thank you please help.

    Check if "Remove background images (sicettedonnéeestdisponible)" is enabled:

    Go to Panel of Colntrol-> Ease of Access Center-> make the computer easier to see-> slot "Make things easier to see", uncheck the box before "remove the merits (if any"-> buttons-click apply and OK. Then try to replace your background.

  • I rented a movie and he will not play in its entirety.  How can I fix it?

    I rented 'The Martian' and it will not play.  How can I solve this problem?

    Have you tried restarting the computer/device you use? If it does not always correctly, contact iTunes Support: http://reportaproblem.apple.com

  • Captivate 7 user variables ' $$Learnername$ $", the name does not appear in its entirety...

    I use 7 Captivate.  I created a 'Learnername' user variable and added to the text entry area. However, the display name does not appear on the text of the legend. For example. Rebecca Donaldson has been added in the input box of text on the next page only Rebecca Dona' came.    I tried to increase the size of the text caption, rename the variable and redo everything, but nothing seemed to work.    Anyone know what could be the problem and how to fix it? Much appreciated!

    Insert the vsriable into the legend using the NVI icon the
    tab proprties. You can specify the number of characters to display.

  • How to resize layers palette when the background is not visible?

    The bottom of my layers palette is less than the visible part of my computer screen... DC I now work abroad on my laptop (and the layers palette poster to the top of the same size as it was when I finally used Illustrator on my big screen).  How do I re-size, so I can use the items at the bottom of the palette?

    cannot drag you high?

    in any case, go to window-> Workspace and choose one of the workspaces, then if you want, return to the workspace that you had before, all sizes of palette will be restored.

  • last updated does not download in its entirety

    Anyone having trouble getting the last update to download correctly for Windows? The 10th attempt for 3 days now!

    Creative cloud, or independently via a browser version?

    If the latter, try another browser.

  • Firefox does not display a single page frame in its entirety without background. reloaded 3 X always undesirable.

    Full page with background does not appear.

    You can attach a screenshot?

    Use a type of compressed as PNG or JPG image to save the screenshot and make sure that you do not exceed the maximum file size (1 MB).

    Start Firefox in Firefox to solve the issues in Safe Mode to check if one of the extensions or if hardware acceleration is the cause of the problem (switch to the DEFAULT theme: Firefox (Tools) > Add-ons > appearance/themes).

    Is he missing pictures then make sure you are not block images from certain domains.

    • You can control and manage all permissions on the subject: the page permissions through the address bar.
    • Check the permissions for the domain in the active tab in "tools > Page Info > Permissions.
    • Check that the images are enabled: Tools > Options > content: [X] loading images automatically
    • Check exceptions in "tools > Options > content: Load Images > Exceptions.
    • See the tab "tools > Page Info > media ' for blocked images (scroll all the images with the cursor key).

    If an image in the list is grayed out and there is a check mark in the box "block Images of..." and remove this mark to unlock the images from this area.

    Make sure that you do not block the images of third permissions.default.images

  • Why can't save my movie on my computer in its entirety in Movie Maker 2.6

    I made a slide show using the movie maker 2.6 and then I clicked Save Movie, after that it was completed I review then i and about three-quarters of the way, no pictures were on the recorded movie screen. The music was not serious as he played completely at the end... What is the problem? PI

    original title: why I can't record my movie on my computer in its entirety

    Hello

    What operating system is installed on your computer?

    I suggest that you disable the video filter and check if the problem persists:

    Solve problems with publishing a movie to your computer

    http://Windows.Microsoft.com/en-us/Windows-Vista/troubleshoot-problems-with-publishing-a-movie-to-your-computer

    Reference: Video filters in Windows Movie Maker: frequently asked questions

    http://Windows.Microsoft.com/en-us/Windows-Vista/video-filters-in-Windows-Movie-Maker-frequently-asked-questions

  • Can not download background pictures on my Satellite Z830

    I recently bought a refurbished Z830 Satellite and I am trying to upload my own photos in the wallpaper: I am trying to load Windows/Web/paper painted/Toshiba, but I am not allowed to access. I created a new file in the wallpaper file, but I can't access that is.

    Where should I go and where I can upload my own background pictures?
    Thank you
    Richard B

    I assume that you want to upload pictures and use them as a slide show for the wallpaper, right?

    If so open the windows Explorer and copy all the pictures in the library > photos.
    Click with the right button of the mouse on the desktop, and choose personalize > wallpaper.
    As the location of the image, choose image library. Select your Favorites, set the position of the image and the change of time. After that confirm with save changes.

    All that s. Please test.

  • Why this SSID is not visible from my laptop?

    Cisco Aironet 1200 installed on the test network. My laptop is picking the signals emitted by the 3 other access points, but not the 'TEST' one.

    Please find attached an access point running-config. Can you help me and advise please why this SSID is not visible?

    I am aware that portion of Cisco ACS/AAA configuration may have to be fine tuned as well, but whatever the configuration of my CSA I should still be able to see the SSID brodcasted in my laptop, isn't that right?

    under your SSID on the DotRadio11 0 interface, add the guest mode command. This allows the SSID be in messages so that your customer can see.

  • Why do I images allowed in my library and I have not yet bought something? Why my library say I have 17 images, but I only see 9? Why can I not see a button "buy"? So frustrating, I want just to save pictures in my library to use as drafts

    Why do I images allowed in my library and I have not yet bought something? Why my library say I have 17 images, but I only see 9? Why can I not see a button "buy"? So frustrating, I want just to save pictures in my library to use as drafts before I commit to all the images that I need for my publication as my employer Gets the last word. I have not had any problems with $ Photo... * sigh *.

    Hello

    Please check the following for more information on the use of Adobe Stock:

    Adobe Stock help | Adobe Stock learn & support

    Currently, you have 6 allowed pictures and 22 available.

    Kind regards

    Bev

  • I finally got CS2 installed on my system. But now the menu background color is black and the elements are not visible until the cursor is over them. It is very difficult to read. How can I change this?

    I finally got CS2 installed on my system. But now the drop-menu background color is black and the elements are not visible until the cursor is over them. It is very difficult to read. How can I change this? I tried to go into change preferences but it does not work

    I changed it to the value default them and that worked. Thank you very much

  • Why I get this message when you use the magnetic lasso tool: "WARNING: no pixel is selected to more than 50 percent."  The edges of the selection will be not visible. ?

    Why I get this message when you use the magnetic lasso tool: "WARNING: no pixel is selected to more than 50 percent."  The edges of the selection will be not visible. ?

    See here:

    WARNING: no pixel is selected more than 50%

  • Why my lines are not visible?

    I went through the steps to create a path, but the path is not visible to change. Is there a setting that needs to be adjusted?

    Hello

    If you were able to create the trajectory successfully so you can make the path by selecting the element (which you had chosen to apply the path) on the stage. If she shows any path check if any transition is created in the timeline of this element or not as it should be there.

    Please look at the screenshot below.

    If the transition and trajectory are not there, it means you missed one step.

    You can check the video below to make sure you do it right. If this isn't the case, please let me know we'll get more opportunities.

    Animated border CC: trajectories - YouTube

    Concerning

    Vivek

Maybe you are looking for