Change on the fly application background image

My main application screen has a background image, set (it is abbreviated):

Class BBScreen extends screen implements {FieldChangeListener}

public BBScreen()

{

Super (Manager.NO_VERTICAL_SCROLL);

setTitle ("my app");

BM1 = Bitmap.getBitmapResource (...);

vfm0 = new VerticalFieldManager (...) {

public void paint (Graphics graphics)

{

graphics.drawBitmap (..., bm1,...);

Super.paint (graphics);

}

};

Add (vfm0);

}

}

However at some point during execution, I want the background image of the bm1 to bm2.  How to set the new picture and that the painting occurs?  Thanks for the pointers.  FD

Try something like this:

public class BBScreen extends MainScreen implements FieldChangeListener{    Bitmap bm1 = Bitmap.getBitmapResource("image1.png");    Bitmap bm2 = Bitmap.getBitmapResource("image2.png");    Bitmap mainBitmap;    public TestScreen()     {        super(Manager.NO_VERTICAL_SCROLL);        setTitle( "My Title");           mainBitmap = bm1;        VerticalFieldManager vfm0 = new VerticalFieldManager(...)        {            public void paint(Graphics graphics)            {                graphics.drawBitmap(.., mainBitmap, ...);                super.paint(graphics);            }         };        ButtonField btn = new ButtonField("Change Background");        btn.setChangeListener(this);        vfm0.add(btn);        add(vfm0);        }    public void fieldChanged(Field field, int context)     {        mainBitmap = bm2;       this.invalidate();   }}

Concerning

Bika

Tags: BlackBerry Developers

Similar Questions

  • I've just updated to Firefox Beta 20. Not happy! The options "View Background Image" and "Image Mode" when you right-click is missing. How can I get that back?

    I've just updated to Firefox Beta 20. Not happy! The options "View Background Image" and "Image Mode" when you right-click is missing. How can I get that back?

    These entries should still be there if you right click on an image or an area with a background image.

    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 start safe mode window or make changes.
  • Location of the custom in the filesystem MX200 background image

    Hello

    I'm having a problem of downloading an image personalized to a MX200 TC6.1.1 running. I have a pc with access to this MX200, but the browser is not compatible, so I'm unable to download the image custom through the web interface. I'm looking for the file where I can transfer the file png via winscp and then run a command via SSH to use the custom image. I found a site that has the background images, but it is read-only and I do not think it is the right one. Any help is appreciated.

    Thank you!

    I have not and MX200, but I checked on my EX60, wallpaper, I just downloaded is located in:

    posters/user /.

    Despite what he called on my computer, it has been renamed simply "wallpaper".  If you do not already know the command to change the wallpaper you want will be:

    xConfiguration video wallpaper: Custom.

    It will be useful.

    Patrick

  • The table cell background image problem-

    I'm sure it's something super simple, but I can't see what it is. I'm working in Dreamweaver CS3, but having to modify the code by hand, because the code is not validated I fight to clean up the last error on this page before applying the model it is based on the rest of my site...

    This page was based on the original model: http://jpcltdservices.com/template-page.html

    As you can see by the w3C validator, it had a number of problems with the tags for the table background image:

    http://validator.w3.org/check?URI=http%3A%2f%2Fjpcltdservices.com%2Ftemplate-page.html & cha rset = (detect + automatically) & doctype = Inline & group = 0 & verbose = 1 & st = 1 & user-agent = W3C_Validator %2F1.606

    I cleaned up by adding the table background image css to my stylesheet main and changed the code in the page for suggested type reference.

    http://jpcltdservices.com/Alternate_template_page.html

    W3C validator shows now only 1 error:

    http://validator.w3.org/check?URI=http%3A%2f%2Fjpcltdservices.com%2FAlternate_template_pag.html & charset = (detect + automatically) & doctype = Inline & group = 0 & verbose = 1 & st = 1 & = _Validator%2F1.606 W3C user agent

    The problem is, if I replace the background = "Images/CellBG1sm.jpg td' on line 34 with style ="background-image"td tag that works on line 27, the background image disappears completely from the whole table!"

    I'm sure it's something super simple, but I can't see it. I'm working in Dreamweaver CS3, but having to modify the code by hand, because the code it generates does not validate in many cases.

    TequilaMockingbird published in macromedia.dreamweaver

    > I cleaned up by adding the css to the bottom of table
    > image to my main
    > sheet style and changed the code in the page to the suggested
    > reference style.
    >
    > http://jpcltdservices.com/Alternate_template_page.html
    >
    > W3C validator shows now only 1 error:
    >
    >
    > http://validator.w3.org/check?uri=http%3A%2F%2Fjpcltdservices.com%2
    > FAlternate_te
    > mplate_page.html & charset = (detect + automatically) & doctype = Inline & group
    > p = 0 & verbose = 1 &st=1&user-agent=W3C_Validator%2F1.606
    >
    > The problem is, if I replace the td
    > background = "Images/CellBG1sm.jpg" on "
    > line 34 with style = "background-image" td tag that works on
    > line 27, the background image disappears completely from all
    > table!

    You seem to be sensational. The CSS validator is another object of value
    tool: http://jigsaw.w3.org . I suspect this first error to main.css is
    the incorrect syntax used here:

    background-image: {"url... / Images/CellBG1sm.jpg";}
    ' background-repeat: repeat;
    }

    Go ahead and remove this rule completely.

    For an inline style, try this:

    But it might be better to remove all those inline styles and use your
    external main.CSS. For example, you are not currently using. MainContent,
    so maybe it's a good place:

    . MainContent {}
    do-family: Arial, Helvetica, without-serif, Tahoma;
    color: #3F3F61;
    do-size: 100%;
    background-image: URL("Images/CellBG1sm.jpg");
    margin: 0 auto;
    padding: 0;
    Width: 790px;
    }

    Then, in the table cell or appropriate:


    or

    Not quite $ $0,02, but HTH

    --
    Mark A. Boyd
    Keep-on-Learnine :)

  • Help me understand the use of background images in "parallax is Fun!"

    Hello!

    I'm new to Muse, and I'm breaking the Parallax is fun how was created. I've been watching the file of the Muse and the source of the page, and I can't understand how the background has been added. The image with the stars a single image file, for example, or the bottom of everything, with colors and gradients, all a long background image? Each of the colored rectangles is a fill, or they are part of a large background image?

    In my file of Muse, these images seem not to be a browser fill - filling browser just appears as gray for me in the room. But I don't know if it's because the assets came not with the file of Muse, or because I do not understand how background images have been added.

    Thank you!

    You are probably confused because you can't select rectangles is home, the stars and the colored background.

    Go to the object menu and click on "Unlock all on the page" to unlock all locked elements and after that, you will be able to select, move and individually control each object on the page. The stars is just a rectangle with a picture fill configuration.

    Hope that helps.

    See you soon,.

    Vikas

  • CSS positioning of elements of PA for the text on the question of background image

    I'm relatively new to dreamweaver from frontpage in the dust. Some things have been easier or I'm missing something. My client site uses backgrounds customized site on most pages, and I just want to understand how the text of the provision above. From what I've read, it seems that using AP elements is the most appropriate at this stage of the construction.

    I can't to the do stay where I want that they. They are fine until you go full screen, then they move to the right. I need to find a way to keep them in one place no matter what. I'm sure you get the idea. Any help would be appreciated.

    http://www.homeworks4u.ca/Sitemap_Homeworks4U.html

    Non-living sites. I'm just waiting for text... and trying to figure out how to do so that he can stay on top of my baggage without messing with my menus.

    Thanks in advance,

    Scott

    APDivs (formerly known as layers) are NOT the best approach for this.  Here's why:

    http://apptools.com/examples/pagelayout101.php

    (1) find a good, shaping CSS to get started with.

    http://ALT-Web.com/templates/basic-1-Col-fixed.html

    (2) a text on a complex background image alignment is futile.  It is a concept of impression that Won't hold up on web pages because you can't control the browser settings, the screen or the text sizes.

    (3) height is a restriction in all browsers except IE.  Don't use values of height on containers with text inside them because this will inevitably cause failures when the text size is increased or amount of content exceeds the available space.

    (4) if necessary to show a background image, use the min-height CSS property.

    Tables to CSS Web Design part 1-
    http://www.Adobe.com/devnet/Dreamweaver/articles/table_to_css_pt1.html

    Tables to CSS Web Design part 2-
    http://www.Adobe.com/devnet/Dreamweaver/articles/table_to_css_pt2.html

    Nancy O.
    ALT-Web Design & Publishing
    Web | Graphics | Print | Media specialists
    http://ALT-Web.com/
    http://Twitter.com/ALTWEB
    http://ALT-Web-design.blogspot.com/

  • Changes in the volume absorbed background app

    Hi all

    I noticed recently (@7.0) that captures the music app (Media Player) volume up/down keys even in the background.

    And a nice modal with volume level appears informing you of the change.

    It's almost as good as the way of Android to manage volume changes.

    (1) how is it possible to capture volume upward / lower the volume of an application while it is not in the foreground?

    (2) is the volume interaction in newer operating system upgraded?

    MediaKeyListener what you are looking for.  It was added in 5.0 and allows an application capture keys media while in the first plan or background.

  • Changes on the fly in DW

    Hello!

    In a big dilemma here. Long story short, I need Freehand to access older files created by our designer. A through a 3rd party company (Aventis systems) and bought the software - or thought I had. They sold me Dream Weaver, who, to my knowledge, is a web design program. All I have to do is change existing Freehand files. Aventis is also refuse a refund as they say that DW is a compatible solution to Freehand.
    I know zilch about DW; so my question is - I am able to open and edit files Freehand in DW?

    The company bought you the wrong software.

    Freehand drawing is a drawing application to generate vector graphics.

    Dreamweaver is a code editor for HTML, CSS, and JavaScript files.

    Not even close.

    What you need is Adobe Illustrator, you can download it for free for 30 days with the cloud of Creative.  After the 30 day trial, you will need to subscribe to the creative Plan of cloud

    Graphic design software | Free download Adobe Illustrator CC trial

    NOTE: Tests have been changed to 7 days.

    Nancy O.

  • Change in the form of an image

    In an earlier version of I PHOTO, I was able to change the border of a picture and make the boarder of circular shape. On the current version, I am unable to do so. Someone at - there a way to do this

    Thank you

    You have a complement of the adjustment of the sticker in Photos, but not the Matt effect.

    In edit mode, click settings.

    In the adjustments Panel click on the blue 'Add adjustment' to add a vignette to your default settings.

    Place the cursor to the right of 'Thumbnail' to reveal the arrow down with advanced settings.

    Set the RADIUS and the strength of the tile.

  • LM3s8962, frequency PWM to change on the fly

    Hello

    I'm trying to understand how to change a PWM frequency by programming in real time. The basic property IO node does not, or at least I n t know when to call it.

    In case you wonder why, I want to order a stepper motor.

    Thanks in advance.

    Never mind

    Solved by starting the PWM outside the main loop, using the basic i/o., inside the main loop, using the basic IO property node, put put fallow frequency use (hudreds of p x 100 Yes) cycle.

    See you soon,.

  • MUSE - bearings change the background image

    I want to create button 4 (thumbnails) which, when you flipping them, changes the page's background image (background images are different for thumbnails). And when you rollover a different thumbnail, background image fades into a different image (again, it is different thumbnail).

    Does anyone know how to get there? At the end of the day, I join the background image to scroll to a different pace for thumbnails.

    You can use compositions for this where the triggers can be equipped with image for different States and target container should be large enough to cover the area of the page, so that when the tile is flat so this specific target will appear page so substantive change.

    Thank you

    Sanjit

  • Change Windows 7 logon background image

    I already know the tweak registry and sizes of jpg Windows\System32\oobe\\info\backgrounds and others, and I need to know where to download a free utility that does this for me.  I can do (and have) myself, but that's not what I want to do now.

    I want to know is where Windows 7 saves the background image used as the default logon screen and the name of the image file.  It's not the Windows\System32\oobe\background.bmp.  I changed that one, but that does not change the default logon background image.  If it's an image file that has a name, I can change if I can find it.

    Anyone know where the file is stored in Windows 7?

    That's all I ask; the location of the file that is actually used as the default Windows logon background.

    "Let them who do not want it have memories of not getting"everything. " "Gratitude is wealth and complaint is poverty and the worst I've ever had has been wonderful." ... Brother Dave Gardner "Experience is what you get when you are looking for something else."... Sir Thomas Robert Deware.

    I found an app open source that runs as a standalone (it doesn't have to be installed) and will change the logon screen wallpaper.  The link is here:

    http://www.SevenForums.com/tutorials/5382-log-screen-change.html

    and is an Option where the application can be downloaded.

  • 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

  • Lost my background image of the body...

    Hello

    I had a picture nice background of blue sky and clouds in the left and right of the body areas bordering the header and sidebar 1 on the left and content on the right. For some reason, these borders disappear and the sidebar and the content now take to the top of the entire page.

    Is anyway to recover the areas of the body and background image? You can see my Web page to the.

    http://www.lanisakai.com/

    Thank you

    MobieBoy

    It's how you want it to look?

    http://www.mytechnet.TalkTalk.NET/mobieboy.html>

    If so, then take a look at the source code to see how it's done.  I did only the first page to show if that's what you want.  The links in the menu do not work until they are changed in your systems.  I just linked to your site so if move you anything so the example will not work.

    G/L

  • How to have a background image transparent web page to the browser

    I used a color gradient background image on my scene for my Web site.

    Managed to load the same background on the background of the browser.

    However, the result is not satisfactory that I can see the limits of background image site against the background of the browser.

    How can I get around this? Or y at - it a code that allows me to change my transparent Web site background so that I do not have a background of the browser?

    Tried to post using the window Mode: Transparent windowless, but does not work.

    Pls help...

    Thank you!

    You can try to remove the background image on the Flash file, and then will the WMODE = transparent route.

Maybe you are looking for