ListField background color NOT COLOR FOCUS

Hello

I've seen a lot of threads to display to change the color of the development of a list item.

But I expect with change field items list in a different color than the default transparent. () When unfocus)

Can someone help me?

See you soon

You can adjust the drawing in the drawListRow
If you want a background, you can define one in the the domain manager

Tags: BlackBerry Developers

Similar Questions

  • ListField background color / highlight

    I am creating a ListField with a red background and white text at any time accept for when highlighted.  When highlighted I would like to highlight to change to color pink (text remains black).  In the following code, the background color is still red, however, the highlight is never fired.

    Question = new ListField()
    {

    Boolean _inFocus;

    protected void onFocus (int direction)
    {
    super.onFocus (branch);
    _inFocus = true;
    Super.Invalidate ();
    }

    protected void onUnfocus()
    {
    super.onUnfocus ();
    _inFocus = false;
    Super.Invalidate ();
    }
       
    public void paint (Graphics g)
    {
    g.setBackgroundColor (Color.RED);
    g.setColor (Color.BLACK);
    Super.Paint (g);

    If (_inFocus)
    {
    g.Clear ();
    g.setBackgroundColor (Color.RED);
    Super.Paint (g);
    }
    on the other
    {
    g.Clear ();
    g.setBackgroundColor (Color.PINK;
    Super.Paint (g);
    }
    g.setBackgroundColor (Color.PINK);
    }
    };

    If I remove the line g.setBackgroundColor (Color.RED); the work of highlighting (rose) and the text remains black, the background color of the listfield however goes to white.  Am I miggins something logic here?  Appreciate any comment.  Thank you.

    Kile

    There is a great knowledge base article ListField coloring:

    Create a color ListField

    Study the code and be creative .

    Good luck!

  • Customizing the background color for an element ListField

    I spent the better half of today trying to figure out how to set the background color for when a ListField element has the focus. I tried the substitution of paint and drowFocus and can not get any color other than the default.

    Someone knows how to do this?

    Try something like that.

     public void drawListRow(ListField list, Graphics g, int index, int y, int w)
    {
        if(list.getSelectedIndex() == index)
        {
             g.setColor(0x0000FF);
             g.fillRect(0,(index*rowHight),rowWidth,rowHeight);
             g.setColor(0x000000);
        }
        g.drawText("Text", 0, y, 0, w);
    }
    

    PS: Call disabled, if the previous paint stays on the screen.

  • images and background colors either not displayed at all or only sometimes

    For example, http://www.bpwcal.org looks fine in Explorer but in Firefox 3.6.10 the background color and/or image does not load. I did not have this problem in previous versions of Firefox.

    Try to clear your browser's cache.

    Tools > clear recent history... - details and of course Cache hit only is selected, and then select all and click the clear now button.

  • Need to activate printing background colors and images, but this is not where it should be in the options/tools/int adv tab. Any ideas?

    need to activate printing background colors and images, but this is not where it should be in the options/tools/int adv tab. Any ideas?

    Try the following. Open IE11, click on the tools, mouse over the option 'Print' option and select "print preview

    Select the layout, as shown below.

    Place a check in the "case print the background color and images.

    Click on the OK"" button.

    J W Stuart: http://www.pagestart.com

  • Background color with sticky notes problem

    I have a weird problem with sticky notes. It works well, but the background color of the text entry box remains white, despite the color you choose. If you choose any color, borders will change, but the input area stays white. Any thoughts on how to solve it?

    Hi FabioFreitas,

    The problem may be related to corrupted application files. To solve this kind of issue, I would propose the following suggestions.

    Method I have
    1. open a command prompt to run the following command to repair the corrupted system files.
    (a) click the Start button and type "Command Prompt" in the search box.
    (b) right click on command prompt to run as an administrator.
    (c) Type: sfc/scannow to scan the entire drive.
    2 copy the StikyNot.exe since another available on the current computer operating system.

    More information on SFC scan found in this document:
    http://support.Microsoft.com/kb/929833

    Method II 
    If the method above does not help to create a new user account and check, if it solves the difficulty of the corrupted user profile issue.

    Create a user account
    http://Windows.Microsoft.com/en-us/Windows7/create-a-user-account

    If the problem does not occur in the new account user set your user account corrupted. The steps to fix the corrupt user account is given below.
    Fix a corrupted user profile.
    http://Windows.Microsoft.com/en-in/Windows7/fix-a-corrupted-user-profile

    It will be useful.

    Thank you, and in what concerns:
    Shekhar S - Microsoft technical support.

    Visit our Microsoft answers feedback Forum and let us know what you think.
    If this post can help solve your problem, please click the 'Mark as answer' or 'Useful' at the top of this message. Marking a post as answer, or relatively useful, you help others find the answer more quickly.

  • To change a background color of Windows7 (not desktop)

    Is it possible to change the background color and the image of the screen if displayed when I pressed Ctrl + Alt + Delete?  I do not positively this pale blue color and model. It's sickening.

    Yes you can do it. Try the following link:

    http://www.howtogeek.com/112110/how-to-set-a-custom-logon-screen-background-on-Windows-7/

  • Brush is using the background color not the FOREGROUND color.

    For some reason any my brush uses the background color not the FOREGROUND color. I went to the window of COLOR but I can't go back. ???

    Try to press B to select the tool brush then right click on its icon and select the reset tool

  • How to change the background color of the code written DW page but not the Web page...

    How to change the background color of the code written DW page but not the Web page...

    If you have DWCC2015, you can change to edit > Preferences > coloring Code and either choose a new theme (RecoGnEyes is the background dark code by default) or you can change it to what you want in the background field by default.

    2014 CC had no theme options, but you can change the background color in the same place.

    I think that some of the previous versions also had the option, but I don't have them on my machine to check.

  • 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

  • Header background color does not work

    Hello

    I'd do it stay change the color background of the header element, , but it does not work as I have thought


    First of all, here's the HTML code:


    <body>
    <div id="wraper">
      <header>
        <h1><span>Pacific</span> Coastal Highway</h1>
        <nav>
          <ul>
            <li>Home</li>
            <li>Big Sur</li>
            <li>Pfeiffer Beach</li>
            <li>Elephant Seals</li>
            <li>Morro Bay</li>
          </ul>
        </nav>
      </header>
      // ... some other HTML elements & content ...
    </body>
    
    
    
    
    

    , Within the < header > element we have < h1 > and < nav > elements, and in this < nav > element there is a list that is actually menu.


    Here it CSS code referring to these elements:

    #wraper {
        width: 1200px;
        background-color: #FFFFFF;
        margin-left: auto;
        margin-right: auto;
        margin-top: 0px;
        border-right: 1px solid #000000;
        border-left: 1px solid #000000;
    }
    body {
        margin: 0;
        background-color: #CBD2FB;
        font-family: "OpenSans Regular", "Gill Sans MT", Arial, "Times New Roman", sans-serif;
        color: #202020;
        background-image: -webkit-linear-gradient(270deg,rgba(135,167,207,1.00) 0%,rgba(204,217,234,1.00) 11.91%,rgba(232,238,245,1.00) 25.91%,rgba(202,212,220,1.00) 100%,rgba(0,0,0,1.00) 100%,rgba(135,167,207,1.00) 100%,rgba(138,169,207,1.00) 100%,rgba(135,167,207,1.00) 100%,rgba(202,212,220,1.00) 100%);
        background-image: -moz-linear-gradient(270deg,rgba(135,167,207,1.00) 0%,rgba(204,217,234,1.00) 11.91%,rgba(232,238,245,1.00) 25.91%,rgba(202,212,220,1.00) 100%,rgba(0,0,0,1.00) 100%,rgba(135,167,207,1.00) 100%,rgba(138,169,207,1.00) 100%,rgba(135,167,207,1.00) 100%,rgba(202,212,220,1.00) 100%);
        background-image: -o-linear-gradient(270deg,rgba(135,167,207,1.00) 0%,rgba(204,217,234,1.00) 11.91%,rgba(232,238,245,1.00) 25.91%,rgba(202,212,220,1.00) 100%,rgba(0,0,0,1.00) 100%,rgba(135,167,207,1.00) 100%,rgba(138,169,207,1.00) 100%,rgba(135,167,207,1.00) 100%,rgba(202,212,220,1.00) 100%);
        background-image: linear-gradient(180deg,rgba(135,167,207,1.00) 0%,rgba(204,217,234,1.00) 11.91%,rgba(232,238,245,1.00) 25.91%,rgba(202,212,220,1.00) 100%,rgba(0,0,0,1.00) 100%,rgba(135,167,207,1.00) 100%,rgba(138,169,207,1.00) 100%,rgba(135,167,207,1.00) 100%,rgba(202,212,220,1.00) 100%);
    }
    h1 {
        margin-top: 0px;
        font-size: 48px;
        text-shadow: 1px 1px 2px #969696;
        padding-top: 32px;
    }
    
    h1, h2, h3 {
        font-family: "Prociono Regular", "OpenSans Regular", "Gill Sans MT", "Times New Roman", Arial;
        color: #507AAD;
        text-align: center;
    }
    
    h1 span {
        position: relative;
        top: -37px;
        left: 35px;
        font-family: GoodDog, Arial, "Times New Roman", "Gill Sans MT", sans-serif;
        font-size: 47px;
    }
    
    header nav ul {
        margin-right: auto;
        margin-left: auto;
        list-style-type: none;
        padding-left: 0px;
        width: 705px;
        /* [disabled]margin-bottom: 10px; */
    }
    
    nav ul li {
        float: left;
        padding: 10px;
        display: block;
        width: 110px;
        text-align: center;
        background-color: #A9A3FF;
        border-right: 1px solid #FFFFFF;
        border-radius: 23px;
        background-image: -webkit-linear-gradient(270deg,rgba(135,167,207,1.00) 0%,rgba(204,217,234,1.00) 60.11%);
        background-image: -moz-linear-gradient(270deg,rgba(135,167,207,1.00) 0%,rgba(204,217,234,1.00) 60.11%);
    
    
    
    
    background-image: -o-linear-gradient(270deg,rgba(135,167,207,1.00) 0%,rgba(204,217,234,1.00) 60.11%);
    
    
    
        background-image: linear-gradient(180deg,rgba(135,167,207,1.00) 0%,rgba(204,217,234,1.00) 60.11%);
        margin: 18px 5px;
    }
    
    
    
    
    
    

    And, finally, this is what it looks like:


    Pacific Coastal Highway - Mozilla Firefox 2014-09-10 15.02.38.png



    Now, I would change the background of the < header > element (to display than whites behind this < h1 > menu in a different color) and so I just added the background of the < header > element in CSS:


    header {
        background-color: #FF2D31;
    
    }
    
    
    
    
    



    But here's what it looks like now:

    Pacific Coastal Highway - Mozilla Firefox 2014-09-10 15.09.11.png

    As you can see, Although the element < nav > list (menu) is IN the < header > element - the background color of the header of <>is right behind the element < h1 >.


    You know why This is the case and what would be the best way of fix ce problem?


    Thank you in advance.

    Try

    header {
        background-color: #FF2D31;
        overflow: hidden;
    }
    
  • Background color of div not showing in Internet Explorer 8 and before

    My footer div does not display the background color (supposed to be black...)  in Internet Explorer 8 and earlier versions.  It requires rather the color of the body.  Also, the border color on top the "bubbles" that run across the page is false (supposed to be blue) is - it simply because Internet Explorer 8 and earlier versions did support not div background and border colors yet, or is there a work-around?  Maybe I did something wrong?

    The site is: www.meridianwaterfiltration.com

    Oh wow thanks!  That fixed it!

    LOL that was an easy fix!  I appreciate your help you are awesome!

  • Does not print background colors

    Hello

    I created a site incredibly gross, a Web page for a customer. There is nothing but the images that do very well, except that when it prints it the blue background color does not appear.

    Any suggestions?

    www.ourhealthcarecrisis.com

    Thank you!


    Background printing is a function of the browser and not the Web page.  Firefox, IE, Safari and Opera, I think can print backgrounds.  Chrome is not.

  • Background color in the body will not change

    Hello

    The background color in 'body' will not change. I even tried to change it to "reset" and it didn't work either. But I can change the color in 'wrapper' etc. Someone has an idea what could be the problem?

    / Milda

    / * Global * /.
    HTML {}
    Body {background-color: #E7E0C9;}
    }

    / * Containers * /.

    #wrapper {width: 900px; auto margin: 0; background-color: #FFF ;}}

    Wrong code in the header of your document somewhere.  Run your page through the validator and fix errors that occur.

    http://validator.w3.org/

  • Background color do not apply to the selection

    I'm trying to update the colors on my site, but I bought the site as a template and I have a problem. One of the problems is that the colors are divided into sections on the Web site. There's probably 15 boxes that I have to change the colors for each. And that's for each page! In a perfect world, I would have 3 or 4 sections, where if I changed it on one site (such as a background jpeg image?) it would change it on all pages. I use Dreamweaver CS5.

    Here's the second thing: I wouldn't mind do it manually, even though I have probably 30 pages on my site (sections 15-30 times = a lot of time!), but I get an error that says 'background-color is not applied to your selection because it is not inherited. It is applied to an attached tag. However, page elements are transparent by default, so this color can show through. »

    Here's an example of how I was able to change most of the colors (the more pale green and Brown), but there are even darker Browns and Greens that remain. These are the sections that give me this error.

    http://www.clarkvideoproductions.com/services.html

    I know that it might be more useful if I posted the code, but with me, being a beginner, I was wondering if there was security risks for the display of all the code of a page?

    Provisions of base tables are inefficient and very labor intensive when lifestyle changes are needed.    You should stay away from models that are based on tables and instead use CSS formatting.

    Example: http://alt-web.com/TEMPLATES/2-column-fixed-width-template.shtml

    Modern Web designers create a wide, cascading style (CSS) to the site linked to each HTML page.  And then they use plain HTML markup for the content.  Keeping your distinct styles of content, you can effectively re-style of your entire site by changing only 1 file instead of 20 or 30.

    For an overview of what CSS can do for you, visit CSS Zen Garden.  Each page of the site contains an identical markup but radically different CSS code.

    Then work through this tutorial in 2 parts:

    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

    Have fun!

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

Maybe you are looking for

  • Moving again portable iTunes library

    I just bought a new laptop for Windows 10. Saved all my old files on a remote hard drive and up - load to the new laptop. I downloaded iTunes to the new PC, but how can I transfer my music to iTunes so I can sync with my iPod?

  • YOU USE A ROUTER TO MAKE JUST A WIRELESS COMPUTER.

    Need to check if my thinking is correct. I have a HP Pavilion dv9740us laptop with wi - fi capabilities.  I want to be able to move home using the computer in various places in my house.  Am I correct that I can't do this by just buying any old route

  • IIS 7.5, the NETBIOS command limit has been reached

    We use IIS services and media to stream videos. It comes to our dedicated streaming server. On rush hour, an error showed by saying 'the NETBIOS command limit has been reached. More info on platform: IIS version is 7.5 OS version is Windows Server 20

  • Do not find version 7.0 on the website for WRT54G

    Hello My WRT 54 G read firmware version V7.00.1).. The sticker on the device can also read Version 7.0. However, I can't find this version listed on the Web site. Any ideas? Best regards Dipinder

  • Help in the task on the Treo

    My tasks do not appear on my computer screen after I type in, but they appear on my Treo after hotsynching.  Is he blocked? Help