Custom background image BasicEditField

Hi, I am developing an app for blackberry, and I have a bitmap graphic custom representing a text entry field. My entire application follows a vertical flow up and down, so I would just create an additional VerticalFieldManager, set the background image in the bitmap that represents the text box and then superimpose a BasicEditField line with the appropriate area in the bitmap image to make it look native. Initially, I tried a BorderFactory use approach with a custom image, but some details like gradients in the graph have been lost by doing this. My first attempts at definition of the BG image and adding a BasicEditField left me with an area that does not perfectly match the BG image. Any suggestions? TIA!

setPosition() BasicEditField not to VerticalFieldManager

Press the button Bravo thank the user who has helped you.

If your problem has been resolved then please mark the thread as "accepted Solution".

Tags: BlackBerry Developers

Similar Questions

  • 7841 SIP Phone - Background Image

    Can I get a positive confirmation that the SIP 7841 landline does not support custom background images?  I've seen on google images that seem to show a 78xx research phone with a screen saver snoopy or similar image and this lead me to believe that this phone could have a custom background or a picture of timeout/screensaver.

    No information to confirm if this fixed phone supports custom background images would be appreciated.

    Thank you

    The administrative guide for the phone always have this information:

    http://www.cisco.com/c/en/us/td/docs/voice_ip_comm/cuipph/7811-7821-7841-7861/10-1/english/adminguide/PA2D_BK_7479E876_00_7811-7821-7841-7861-ag-cucm-1031/PA2D_BK_7479E876_00_7811-7821-7841-7861-ag-cucm-1031_chapter_01001.html

  • 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

  • Custom with a background image button had a white area around it

    Hello

    I have a screen with a black background and I am trying to add a custom button with a background image on it. But the custom button has a white border around it.

    Is it possible to remove this white border or black?

    Thank you

    Is the custom field button only focusable, or do you see it too when she does not have focus? Try drawFocus() substitution if it is only when he has developed there.

  • 2 of 5 of my background images won't load

    2 on 5 of my habit of background images load in firefox, but goes on other browsers.

    The photos should change every time a user selects a new page, but only 2 of them seem to

    the link is

    soupd-up.co.UK/private2

    Thanks in advance

    Three of the five images have path separators "Windows-style". Example:

    data-custom-background-img="\img\shutterstock_193037642.jpg"
    

    To make Firefox happy change, slashes return (\) bar forward slashes (/) and that should fix it.

  • Lenovo Y580 screen background image is locked

    I can put my Shuffle back through a few images from time to time, and a day or two before, I turned on my laptop and my experience has not changed. I right click and entered in Customizing and changed the background, but the picture remained the same. I restarted my computer, but it did not work and I did have much luck in the search for information about this online.

    Hi brianagara,

    Welcome to the Lenovo Forums.

    Try one of these fix:

    1. If you are using Windows 7, you can check this microsoft hotfix:

    Impossible to change the background image in Windows 7

    2. If you are under Windows 8 and you have upgraded to Windows 8 Pro and ran to the issue, see this article:

    Enable the user to change the wallpaper in Windows 8

    Let me know your findings,

    neokenchi

  • custom background does not

    I used different background images on my signs for years. Never had a problem until now. Now, they seem to not work. No custom backgrounds, not even work the supplied LV (steel, wood, clouds, etc.) ones. I can see them in the browser, but they will not go to the background of the front panel. Win 7 and LV2012. Someone at - it is possible to duplicate this behavior?

    It is perhaps not very convenient, but you can try this to test the system.

    https://decibel.NI.com/content/docs/doc-5882

  • Set the background image of a cluster? [LV 2013]

    Hello-

    Researcher, said, "why don" t you turn the image on the front panel and then decorate the image with the controls? See? Problem solved. "And the door closes.

    So, I take the picture, scaling properly and voila! It is now the background image.  Then add controls.

    The horizontal and vertical scroll bars to move controls... but the background image is not followed.  So if someone touches the scroll bars (they are required) then controls and image are aligned.  Worse yet, their modified track manually is a pain in the eye-hand control.

    I could put in a button titled "realign" and have it reset the position of the scroll bar. Or have the scrolling screen VI bar position (look at the FP zero spot) and some treatment to shift the image of the picture.  What is its painful.  Is there another way around the problem?

    HM. A cluster? Clusters follow the scroll bars. But I can't seem to put a background image a cluster. The background color can be changed... but I don't see a way to paste a picture.  I tried customizing the cluster control and attempted to use the same method to add an image as on the front panel (with the right button of the scroll bar, follow the instructions). This has changed the background of the typedef would control.  Saved.  Tried to use it. LabVIEW will > BEEP<  and="" nothing="">

    I really want to avoid building this complex picture of decorations.  Especially when the image has chemical compounds in the boxes: how to index and the letters and numbers?   That... and the image is one of these steps 'it's refinement... ».

    Thank you for your time.

    Mark

    You don't give enough information on how this actually looks like and I don't have any experience with background images, but I would simply say, you drag the image file in the public Service and use the command menu in the toolbar to move backward (Ctrl + Shift + J) and then it must maintain position relative to other objects. You can then use the same menu to lock, so that it is not moved accidentally. You can also place an image control in the back and load the image in the code if it changes a lot, but this isn't a recipe for positioning the elements properly.

    I also generally agree with Martins that scrolling is a flag. If you need to scroll, you look and see if there is a problem and other solutions.

  • Windows Vista cannot see this background image instead, I see a solid blue color during startup and shutdown

    original title: background logon of windows vista I do not see this background image instead, I see a solid blue color during startup and shutdown

    I use a laptop with windows vista home basic 32-bit sp2

    After turning on the computer laptop, I get a prompt to enter the password at this point, I would usually get a background image and the same background image appeared when I stopped

    I do not see this background image instead, I see a blue solid color when you start and stop as the background image has been replaced by a blue color

    I followed all the steps of the following

    http://www.howtogeek.com/HOWTO/Windows-Vista/customize-your-Windows-Vista-logon-screen/

    http://answers.Microsoft.com/en-us/Windows/Forum/windows_vista-desktop/can-you-customize-the-logon-screen/75def0ce-2dc4-48c1-B290-daaf685efca4

    http://www.Vistax64.com/tutorials/79886-logon-screen-change.html

    However, I don't see the background image. the background image is in the right folder location whith the required size as jpg image with the exact registry required such as mentioned in the above links entries

    How do I solve this problem

    Hello

    Did you do changes on the computer before the show?

    You can try the steps and check if you are able to see the background on the logon screen.
    a. Click Start, and then type gpedit.msc
    b. navigate to Computer Configuration and go to administrative templates and go to System.
    c. go to connection and set the "bottom always use custom logon" to activate.
    d. create a folder named C:\Windows\System32\oobe\info\backgrounds
    e. put the file you want, and then name it backgroundDefault.jpg
    f. check your other background for the dimensioning of the info files

  • 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 on the User Interface

    I'm trying to place a background behind my screen of the application image. So instead of the usual white, there would be a "background.png". I am following this thread with the blackberry API set

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

    So far, I tried to apply it within my own application, with the code to start as follows:

    final class UserInterfaceScreen extends MainScreen {
        HorizontalFieldManager _fieldManagerTop;
        VerticalFieldManager _fieldManagerMiddle;
        HorizontalFieldManager _fieldManagerBottom;
        BitmapField _bitmap;
        Bitmap _canadaImage, _ukImage, _usImage, _backgroundBitmap, _fieldBitmap;
        LabelField _label;
        BasicEditField _input;
        String _canadaCapital, _ukCapital, _usCapital, _capital;
        int displayed = 0;
    
        public UserInterfaceScreen() {
            super();
            LabelField title = new LabelField("User Interface Sample",
                    LabelField.ELLIPSIS | LabelField.USE_ALL_WIDTH);
            setTitle(title);
    
            HorizontalFieldManager _horizontalFieldManager = new HorizontalFieldManager(HorizontalFieldManager.USE_ALL_WIDTH | HorizontalFieldManager.USE_ALL_HEIGHT){
    
                //Override the paint method to draw the background image.
                public void paint(Graphics graphics)
                {
                    //Draw the background image and then call paint.
                    graphics.drawBitmap(0, 0, 640, 900, _backgroundBitmap, 0, 0); //240
                    super.paint(graphics);
                }            
    
            };
            _backgroundBitmap = Bitmap.getBitmapResource("background.png");
            _fieldManagerTop = new HorizontalFieldManager();
            _fieldManagerMiddle = new VerticalFieldManager();
            _fieldManagerBottom = new HorizontalFieldManager();
    
                add(_horizontalFieldManager);
                add(_fieldManagerTop);
                add(new SeparatorField());
                add(_fieldManagerMiddle);
                add(new SeparatorField());
                add(_fieldManagerBottom);
    

    Basically, I'm trying to combine the thread above with the user interface tutorial.

    http://supportforums.BlackBerry.com/T5/Java-development/user-interface/Ta-p/442781

    The question is when I run the code, I just get the background image, none of the other content is displayed in the foreground. I am this approach correctly?

    I'm not sure the solution you received one will work - it may well do, but the approach is different from what I do.  I based my image of background processing around comments in this article:

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

    But if you look at what you said your screen, you will see why you don't see all your real fields.

    The first thing that you add to your screen is as follows:

    HorizontalFieldManager _horizontalFieldManager = HorizontalFieldManager(HorizontalFieldManager.USE_ALL_WIDTH | nouveau HorizontalFieldManager.USE_ALL_HEIGHT) {}

    You said this Manager to use the full height and width.  Then what place is left for any other Manager/field.

    You only add this option to provide abackground.  So actually, to do this, you must you add all your fields and managers in this HFM.  Otherwise that will expose after this one (which, as noted way they have no space to display in). I think you'll see something, if you replace this:

    Add (_horizontalFieldManager);
    Add (_fieldManagerTop);
    Add (new SeparatorField());
    Add (_fieldManagerMiddle);
    Add (new SeparatorField());
    Add (_fieldManagerBottom);

    with

    Add (_horizontalFieldManager);
    _horizontalFieldManager.Add (_fieldManagerTop);
    _horizontalFieldManager.Add (new SeparatorField());
    _horizontalFieldManager.Add (_fieldManagerMiddle);
    _horizontalFieldManager.Add (new SeparatorField());
    _horizontalFieldManager.Add (_fieldManagerBottom);

    But it probably won't be good, so you should follow the advice given in the previous Post or see the KB article.

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

  • I can't change my background image to screen.

    I can't change my background image to screen.

    I followed the process of selection of a desktop image and confirming the image I want to save but the program won't save selection and return to another block background color

    Original title: Customizing Office

    I just right-click on an image that I want as my wallpaper (called "wallpaper". Google for lots of choice) and click set as wallpaper.

    Or see the Microsoft way to do (slow) HERE.

  • Background image for the ObjectListField

    Hey all:

    I am trying to use a background image on a custom ObjectListField. The image is for each line, and in the method of substitution of drawListRow, I had graphics.drawBitmap (...). However, only the first line in the area is drawn, and him still ignored the code. So I was wondering if there is a way to make the background of the line drawn for each line. Why graphics.drawBitmap in drawListRow affects only the first line?

    Any help is appreciated, thanks in advance!

    Looking at the signature of drawListRow:

    drawListRow (ListField listField, graphics card graphics, int index, int y, int width)

    I suspect that you do not use this setting are in your call drawBitmap.  If you use this call:

    drawBitmap(int x, int y, int width, int height, Bitmap bitmap, int left, int top)

    Make sure you spend the fourth parameter (is) of drawListRow as the second parameter (y) drawBitmap.

  • Text single line with background Image field

    Hello

    I have the following requirement for a small number of topics on BasicEditField, but I couldn't find answers to my requirement, so post to the same

    My requirement

    1 must be the only editor of line text field with a width and a predefined height.

    2. If a background Image(For better look-rounded edge image like in Broswer)

    3. If the number of characters exceeds the single line, it has scroll horizontally right and from characters to scroll left with the appropriate property of the ellipse.

    4. in entering an Enter key (Center of select navigation Keys), it should call my method to perform an action.

    Enjoy a quick help on this

    Thanks in advance

    Q1. BasicEditField.NO_NEWLINE will stop people pressing enter and get a new line.

    Regarding your second question, I recommend that you check out the two videos on screens and area managers.

    As a general rule, a field is laid out (i.e. tells his manager what size he needs and then this rectangle is placed), then painted.  Exhibitor is managed by managers and put sublayout on the page for the fields.  The more important than sublayout and put thing in page do is specify the scope (width and height) they need, which fiddles and managers to make using the measure.

    Once all fields was laid out, then the visible parts of each field are painted using paint.  I've never used subpaint.

    I hope this helps.

Maybe you are looking for