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.

Tags: BlackBerry Developers

Similar Questions

  • 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);

  • 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.

  • Random HTTPS of image not displaying and be abandoned

    This is a file that includes pictures posted on my site:

    https://polishwords.com.pl/dev/testAbort2.php

    They are provided by HTTP and they work well.

    But in this file:

    https://polishwords.com.pl/dev/testAbort.php

    But I show the same images over HTTPS not HTTP and every time I refresh the page (CTRL + F5) one, at random, pictures is not displayed and in console network red poster with information: abandoned.

    I've tried it in Chrome, Internet Explorer, and Opera, and everything is ok. Only in the latest Firefox.
    I tried with deleted complete privacy, restarted several times updated FF, disabled addons, extensions disabled and it's the same thing. Another person who also has FF me reported the same situation.

    In my server log, it looks like this:

    Bad load:

    [22/Mar / 2013:23:29:11 + 0100] "GET /images/mukonczeniestudiow.jpg HTTP/1.1" 200 6705 "-" "Mozilla/5.0 (Windows NT 6.1;". (RV:19.0) gecko/20100101 Firefox/19.0 "

    Good load:

    [22/Mar / 2013:23:30:41 + 0100] "GET /images/mukonczeniestudiow.jpg HTTP/1.1" 200 6907 "https://polishwords.com.pl/dev/testAbort.php""Mozilla/5.0 (Windows NT 6.1; (RV:19.0) gecko/20100101 Firefox/19.0 "

    What is the cause of this behavior?

    Hi tomaszs, based on your journal, your Web server is receiving and responding to the request, but the small size of the response suggests that there is some sort of glitch. Can you spot any model it?

    Unfortunately, I'm no expert on web servers and I find encrypted traffic very stimulating to see - using a debugging proxy can work around the problem that you are trying to diagnose by managing connections differently.

    It is without doubt a documentation on when Firefox give up the demand for a particular item.

  • Impossible to get background images is displayed in the bar of menus spry published

    I worked on this all day the problem started with the bullets, showing instead of the menu, once that was solved (thanks to awesome posters).  the menus are now show, but are not the background images that I attached to it.  Here's the URl and an image of what the rear images should look like.  I appreciate your help

    http://eappromotions.healthandperformancesolutions.NET

    menu_bar_live-View.jpg

    This is where your file SpryHorizontal12.css is looking for this image.  It's 404 not found at this place (note the path):

    http://eappromotions.healthandperformancesolutions.NET/eappromotions/EAP%20Promo%20Kit/htm l/images/top_nav_button.gif

    In addition, don't not use spaces in file names and folder.  It creates problems when the spaces are converted to % 20.

    Nancy O.

  • Background images in HBoxes and VBoxes

    I have built a page in mxml, and would include a background images for the components of some of the mx:HBox and mx:VBox elements that I use. Looking around online, it seems that a property "backgroundImage" would be what I would need to set however I keep getting errors that no property exists. Is this something that has changed in Flex 4 or am I missing something?

    Thanks for any help.

    To create a background for a HBox, you could do something like this:

  • Firefox manages not to display images much (but not all) on the Web sites that I visit, certain images are displayed and some are not even if they are in the same format.

    I recently changed my ISP because I had connectivity problems. Especially my router would be closed sporadically. As part of my attempt to identify issues, I ran some spyware that I was told that I could trust. Since then, I have a problem looking at many websites as much (but not all) images are missing, even on websites that I know very well, including my own. What is odd, is that on one site each page has an image jpg under the navigation bar and all these jpg appear except for one who does not even appear when I reload images. This problem also makes security of sensitive sites as my amateur full site look Bank that scares me. The problem does not occur on other web browsers.

    What spyware software do you run?

    Make sure that allow you pages to choose their colors and you have not enabled high contrast in the Windows accessibility settings.

    • 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.

    There are also extensions (Tools > Modules > Extensions) and security software (firewall, antivirus) that can block images.

  • Why do I see only the background image to display on the TV screen, not what is actually displayed on the screen of my laptop?

    I have a laptop HP pavilion ze 4942 US and Samsung LN37A550P3FX2A LDC TV. I plugged this week with a 15 pin VGA Cable. The firmware on the TV is OK according to the Samsung website. Is there a driver I need to install on the laptop?

    Hi ludo,.

    Allows you to update your display adapter for the laptop drivers.

    http://h10025.www1.HP.com/ewfrf/wc/softwareCategory?OS=228&LC=en&cc=us&DLC=en&sw_lang=&product=444754#N224

    OR

    http://www.Intel.com/p/en_US/support/detect/?IID=gg_support-EN_01+home_detect

  • How to change the background image of display themes?

    original title: photos of desktop theme

    How can I change the desktop themes backgroung image? When I try the method of customization and select a new theme, it is just something that already existed. The done button does not appear at the bottom of the themes page. Using Windows Home Premium 64-bit edition.

    Jim t8817 of Hello and welcome in the Microsoft community

    There are two ways to change the theams and aperences of your computer

    I usually use the registry, but it's a quick way to make a paper weight

    hear is a way via the command prompt

    This is the safest way recommended to do it without the control panel

    http://www.ehow.com/how_6930915_do-Windows-theme-command-line_.html

    I also sugest you read the following tutorial

    http://windows7themes.NET/cant-change-Windows-7-theme.html witch allows a large number of customization options

    also focus on fixing your aero it will improve your customization options

    http://support.Microsoft.com/mats/aero_effects_not_working/en-us?WA=wsignin1.0

  • Apex 5.0: Theme Roller and background image

    Hi all

    I'm new to APEX 5, but have many years experience with HTMLDB/APEX.

    I created a dummy application with only a blank page. Now I want to give a background image for all the pages of my apex application. To do this, I downloaded a picture of 'images of the workspace' and now, I would like to use this image as a background image. Here are my questions:

    1. How can I declare this image as background image using the custom field 'CSS' roll theme?
    2. Is this possible using the theme roller?

    Thank you

    Hi S-Max,

    of course, it is possible and it is not necessary to change the universal theme page templates. You can easily do with theme roller.

    1. Go to components-> themes-> universal theme shared
    2. Scroll down to the region of "files".
    3. Download your background image with the 'Upload File' button (Note: this is not a static file request or workspace, instead, this will be a static file of the theme!)
    4. Run your application
    5. Open the theme roller and choose your theme style
    6. Go to the "Custom CSS" attribute
    7. Use the CSS code you have pasted above, but delete #WORKSPACE_IMAGES #.
    8. Click Save / Save as (-> generates the new theme CSS stylesheet file, which is stored as a static file of the theme next to your background image.) That's why you can make reference to the image with a relative URL).
    9. Click the current value (if the custom theme style is not already the current)
    10. Topic close Roller
    11. The above generated theme style CSS file gets charge and your background image should display

    Concerning

    Patrick

    ---

    Member of the APEX development team

  • 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

  • Orcle ADF: Background Image of panel group put on the page is not getting displayed in stubborn browser task-flow

    Hello I'm developing a web application using ADF (jdeveloper 11.1.2.4). I have a template that I have panelGroupLayout. I put a background image for the grouplayout. And I created a test.jsf page from this template. When I run this page directly background image is displayed in the browser. I put this page in a stubborn taskflow. My problem is when I execute this page of the stubborn taskflow background image is not displayed.

    Image is displayed for this URL: http://127.0.0.1:7101/EasyRUN-ViewController-context-root/faces/login?_adf.ctrl-state=1px1s1o6o_26

    Image is not posting to this URL: :7101/EasyRUN-ViewController-context-root/faces/admin-flow-definition/homePage?_adf.ctrl-state=1px1s1o6o_29 http://127.0.0.1

    Please help me. Thanks in advance.

    The part of the url of the background image is the problem, probably

    As first of all, try to assign relative to your location of workflow, for example:

    background-image: url("..) ("/ ERUnBPart2.png")

    just to see what happens

  • How to block Background Images?

    Hello

    I have problems with sensory processing and when I sometimes scrolling on pages with background images, the text moves and the background image is not, and this triggers my migraines.

    I tried to use preferences > content > colors options and style "text on white background", * and they help, but on some sites (and not on this site) they make it impossible to see what I'm typing errors.

    Does anyone know of a good way to block images from bottom without this problem, or can be displayed/hidden?

    If the problem is only that the background does not scroll this bookmarklet could help.

    Make a fixed background image attached to the scrollable body element.

    javascript:void(document.body.style.setProperty("background-attachment","scroll","important"));
    

    You can create a new bookmark and paste the bookmarklet JavaScript code into the location field.

  • My screen background color has changed and it is difficult to see things clearly in Windows Explorer.

    screen background color

    My screen background color took a deep blue tint which is whenever I visit a Web site, or windows Explorer. Therefore, it is difficult to see clearly. All solutions?

    Hello Richardtopping

    Here is a list of steps to change not only the color of office, but the background as well. You can also view this information from the listed source here.

    Change your desktop background (wallpaper)

    Your wallpaper (also called wallpaper) can be a digital picture from your personal collection or one that comes with Windows. You can also select a color for your background or use a color to frame your background image.

     
    Windows comes with a lot of background choice of screen
    To change the wallpaper

    1. Open the wallpaper by clicking on the button start , by clicking on Control Panel, appearance and customization, personalization, and then clicking desktop wallpaper.

    2. Click on the image or color you want for your desktop background.

      If the image you want to use is not in the list of background images to display, click the location of the image downwards arrow to view other categories, or click Browse to find the picture on your computer. When you find the image of your choice, double-click it. It will become your desktop wallpaper and appear in the list of desktop backgrounds.

    1. Search for photos in other locations on your computer
    2. Under how the image must be positioned, choose to have the picture to fit the screen, tile, or being centered on the screen and then click OK.

    Note

    If you choose to have a picture centered as your wallpaper, you can also have a color background to frame your picture. Under How should be placed the image, click on change the background color, click a color, and then click OK.

    Tip

    You can make an image stored on your computer (or a picture you are currently viewing) your desktop background by right-clicking on the image, then click on set as wallpaper.

     
    Right click on an image to set it as the desktop background
  • Can I have different screen on two monitors background images?

    I use two monitors side-by-side.

    There is a supply virtually unlimited background images to display, including the pre-made themes and slideshows, but no way I can find to have different images on each monitor.

    Am I missing something?

    Hello

    Windows 7 doesn't have this built-in capability. There are third-party software multi-screen solutions.

    I also use two monitors and I think a better ioption is to use two screens wallpaper. It is an image large enough to cover both monitors. For example, I have two monitors set in 1680 x 1050 and I use a screen background image which is 3360 x 1050 and set the tile option. It's a cool effect.

    There are a lot of websites that offer these dual monitor wallpapers. Just use your favorite search engine and look for "wallpaper bi-ecrans".

    I hope this helps.

    Thank you for using Windows 7

    Ronnie Vernon MVP

Maybe you are looking for

  • A60-652 Sateliite how to clean the fans?

    Hello, my laptop was really getting hot these past few weeks. So I thought there must be a dust blocks the airway or something inside the laptop.So I tried to unscrew the bottom of the case, released all screws except one side of the laptop is still

  • error 201003 trying to read several analog inputs on 9172 chassis

    I'm new to the Forum, so forgive me if this has already been answered. Input module im using the chassis c - 9172 DAQ with an analogue of the 9221. I want to read three transducers in real-time. The problem I have is two if the transducers are 7.5 K

  • Unable to connect to Xbox 360 via the network.

    Original title: network host down OK, so I have my xbox 360 and a laptop of HP under win7 set up on my home network to my dell PC winVISTA.  One day the network just stopped working no real reason.  The xbox and the laptop can connent to the internet

  • HP 650 with 4 GB of Ram can be used with Windows 7 32 bit installed showing 929 MB

    Hello Admins, please I have a 650 Hp Notebook PC with 4 GB of Ram installed but its usable MB 929 display are the following details of my PC. Graphics card: Intel HD Graphics 3000 Chip type: Intel(r) HD Graphics Family Amount of video memory availabl

  • More than one unit performs (NAT network address translation

    Trying to help someone: tried to implement a "Wired home network private.  Connected a laptop VISTA and Win7 desktop Ethernet Netgear strugglingNR 2000 wireless router. Restart both computers with a wireless switch on laptop OUT to connect with a wir