How to set the background color for the Webworks Menu?

Hi all

I have developed a web application that uses the emulator to ripple and Blackberry Webworks SDK 2.3.1.5.In I added the Menu items on the Blackberry Menu button... It works well... It contains the background color by default for Menu (Black)... Here, I want to change the background color of the Menu... Please help me to change the background color... Thank you very much..

With respect,

Marimuthu_P

I don't think that this is possible.  The WebWorks API allows you to add menu items to your application does not provide the ability to change the background color by default of the menu.

This API is actually an extension of Java built into the SDK WebWorks.  The source code because it's open source, available here: https://github.com/blackberry/WebWorks/tree/master/api/menu/src/main/java/blackberry/ui/menu

It is based on the Java class "MenuItem", which as you can see it does not provide methods or properties to set the color:

http://www.BlackBerry.com/developers/docs/7.1.0api/NET/rim/device/API/UI/MenuItem.html

Tags: BlackBerry Developers

Similar Questions

  • How can I set different background color for the slider?

    Hello
    I want to set a different color for track Slider, slider track is spitted into two sections by slider-button.
    I want to put a left gray, the right of a white.
    Under css only changes the background of the entire track, but how I can change different background color for the slider?
    Any suggestion?
    .slider {
        -fx-border-width: 0;
    }
    .slider *.track {
        -fx-background-color:white;
        -fx-background-insets:  0, 1;
        -fx-border-color: #faf0e6;
        -fx-border-width: 1;
        -fx-border-style:solid;
        -fx-progress-color:yellow;
        -fx-border-radius: 20;
    }
    .slider.knobStyle:focused .knob {
        -fx-effect: dropshadow( three-pass-box , red , 5 , 0.5 , 0 , 0 );
    }
    .slider.knobStyle:unfocused .knob {
        -fx-effect: dropshadow( three-pass-box , red , 5 , 0.5 , 0 , 0 );
    }
    .slider .thumb {
         -fx-background-color:rgb(224,225,226);
         -fx-background-repeat:stretch;
         -fx-background-size:stretch;
         -fx-background-position:center top;
         -fx-background-image:url("../images/volume_ball.png");
            -fx-padding: 10;
    }

    I don't know why I can't get the node of the track, track has always set to null and the thumb or the other.

    After that the cursor was displayed on an active scene are you doing research?

    (ex.: after you have added the slider to a scene, the scene for scene, then called stage.show ())

  • How to set a different color for the items in selectManyCheckbox

    Hello

    I would like to change the background color of text element for each item in selectManyCheckbox (different for each element).

    It is only 5 points which could be static reference or select.

    I only know how to change background for all items

    AF | selectManyCheckbox:item-{text}

    Background: orange;

    }

    How to select concrete question text and change color for them alone?

    I have the similar problem.
    CSS - background color defined for each individual p:selectManyCheckbox checkbox - Stack Overflow

    but it don't work for me because I don't have a structure very adf

    I need somethink like this:

    AF | selectManyCheckbox:item - XXXX text - select a question by number here in the list or the id {}

    Background: orange;

    }

    I use selectBooleanCheckbox in the forEach loop

  • How to add a background color transition to this menu

    Hi all -

    Struggling to add transition: background color ease 0.5 s; for this menu

    http://www.ossiningdesignguild.com/RWDnav.html

    CSS is here:

    http://www.ossiningdesignguild.com/rwdnav.CSS

    I tried to add to ul li a without success and I would appreciate a helping hand.

    Thanks as always...

    Remove the bottom of the NAV UL. This State is not changing as you do not have: hover class

    You want to trigger a change on: hover ul li then add funds to that:

    NAV ul li a {}

    other styles

    Background: #222;

    -webkit-transition: context facilitated in 0.5 s.

    -moz-transition: context facilitated in 0.5 s.

    -ms-transition: context facilitated in 0.5 s.

    -o - transition: context facilitated in 0.5 s.

    transition: context facilitated in 0.5 s.

    }

    NAV ul li a: hover {}

    Background: red;

    }

    You used gradients and if you try to animate you will get them a flash, you may need to use-webkit-backface-visibility: hidden; to fix this.

    http://css-tricks.com/almanac/properties/b/backface-visibility/

    CSS3 - Webkit facilitate transitions gradients - Stack Overflow

  • How to set the color for background ChoiceBox point to ChoiceBox with css?

    How to set the color for background ChoiceBox point to ChoiceBox with css?

    I need to change the backgound color list items.

    I tried with the following code, but it's not help to:

    {.context-menu .choice-box

    -fx-background-color: Red;

    }

    .choice-box .menu-item {}

    -fx-background-color: red;

    }

    In Java 8, either of your selectors should work.

    In Java 7 (JavaFX 2.2), you need of the following workaround:

    #choice-box-menu-item {
         -fx-background-color: red ;
    }
    
  • How can set the background color of the status bar?

    Quote from the old forum:

    Comments: comments
    How can set the background color of the status bar?
    Posted the: July 17, 2008 02:56
     
    How can set the background color of the status bar?
    Using this code for the status bar:
    LabelField statusField = new LabelField ("Good Morning", LabelField.USE_ALL_WIDTH |) LabelField.NON_FOCUSABLE | LabelField.HCENTER)
    {
    int _backgroundColour = Color.LIGHTGREEN;
    public void paint (Graphics g)
    {
    g.setBackgroundColor (Color.RED);
    g.Clear ();
    Super.Paint (g);
    }
    };

    Font defaultfont = Font.getDefault ();
    Police smallfont = defaultfont.derive (Font.PLAIN, 12);

    statusField.setFont (smallfont);
    setStatus (statusField);

    When I ran the code you have above, my status background color was red.  Is not what you see?  If so, please provide the BlackBerry model and software version that you are testing.  You can find this under Options.

    Or if you try to do something else, please provide details.

    I tested this in the BlackBerry Simulator included with version 4.5.0 BlackBerry JDE (4.5.0.44).

    To do this in version 4.1, first call getColor and save the current color.  Then call setColor, setting the color to the color you want to use for the background.  After this call call fillRect, starting with 0, 0 and go to the size of the field (use this.getWidth () and this.getHeight () to get this).  This must fill in the field with your specified color.

    To allow the drawing of the default content of the field call setColor once again, passing in the original color, then call super.paint.

  • How to set the page background color

    I would like to create a book with blank pages, some gray and some black backgrounds.  In photoshop, it's easy to set a background color, but I don't see how to do this in InDesign CS4.  It should be easy, but I can't find the answer anywhere!

    Thanks for your help.

    Paul

    Unless you intend to actually print the background color, rather than printing these pages in stock color, you should put a layer of sepatate behind everything and be together the nonprinting layer or turn off the visibility before the release.

    In addition, if the majority of the publication will be released on colored stock, you can change the shade [paper] to show something close, so you will not need to have a special background for these pages.

  • How can I change the background color for the bar 'help file edit view history bookmark tools' in Firefox 29,0

    How can I change the background color for the bar 'help file edit view history bookmark tools' in Firefox 29,0

    You can add a theme of solid color to change the color of the top of the browser window, which contains the Menu bar.

    https://addons.Mozilla.org/en-us/Firefox/themes/solid

  • How to set the background color of a page_item?

    I was pasting "background-color: #5CD65C" in a number of places, like the 'attributes of the HTML table cells' under the label and the tabs of the item, but get no results. Can someone tell me how to set the background color of a cell, please?

    Hi Doug,.
    One method is to add a style to your header html in page attributes, if you add the below css styling and the change of the name of the item page (#P2_FIRST_NAME) to your he should style correctly:

    Thank you

    Paul

  • How to set the background color in a scene?

    I'm new to JavaFX and just started my first program of FX.  I created a FX 7.3 NetBeans project and the project runs correctly.   All the samples in the JavaFX samples download work as well.  But when I try to do something as simple as the definition of the background on my first stage color to black, I can't make it work.  I find examples and documentation telling me that what I do should work, but it's not.

    Scene = new scene (root, 300, 250, Color.BLACK);

    scene.setFill (Color.BLACK);

    primaryStage.initStyle (StageStyle.UNDECORATED);

    primaryStage.setTitle ("Hello World!");

    primaryStage.setScene (scene);

    The two lines "BOLD" are marked as errors.  Unfortunately, I can't find a way to copy the error popup text in the IDE, so I'll summarize.  The two lines are errors that say that I gave a color but paint was expected.

    Is there something that I am missing? Can it be this hard set a background color in JavaFX?

    Thank you.

    Hello. Choose your imports. You probably

    import java.awt.Color;
    

    Instead of

    import javafx.scene.paint.Color;
    
  • 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.

  • Save the background color for e-mail

    I use windows live, which is fine, synchronizes me emails etc. -.

    I put the type of font/size I want for my outgoing emails

    Now, I'm putting a shade of color.

    I can get the change of background color for an individual mail - but can't see how I can save it for ALL my emails, as I could do with the font style/size.

    Any ideas?

    Thank you.

    To set a background color, create and use stationery.

  • How to set the background Transparent

    Hi all

    I'm very new to blackberry development, can someone tell me how to set the background transparent.

    Thank you

    Kishore P.

    Use this code:
    VFM VerticalFieldManager = new VerticalFieldManager () {}
    //...
    }
    vfm.setBackground (BackgroundFactory.createSolidTransparentBackground (Color.COLOR_YOU_LIKE, 0));

  • How to set the stage (or the background in the stadium?) to be transparent?

    How to set the stage (or the background in the stadium?) to be transparent?

    Thank you

    Gary

    Select the scene.

    Color sample

    Then set the Alpha slider to 0.

    .

    Darrell

  • How to set the pixels for the softer - edge, in a design? I use PhspCS5 TRIAL grateful for help!

    First of all, I'm not a rather advanced digital artist know the tools of basic (a bit) and I'm pretty good with those who, over the years, however, have a new Mac and better

    visibility for sure and an ASSESSMENT of PSHP CS5 Extended version; what I'm asking is: how to set the pixels... to achieve the softer contour for example. I have

    greeting card templates and is now working on a Christmas tree, with gold stars, they better look (vy-light = blk) but when I ZOOM IN I see the ' wavy lines

    pixels, which appear on the 'place '.  I would like to know how to set the pixels * 1 # and then with respect to colors, when I take a yellow (there are many! yellow!)

    and use my Intuos "tap tap tap" pen drawings (yellow), it does NOT save... (he did it on my other computer and CS4 more aged).  So going

    back to my swatches of color, of... .remember just what yellow I took... ha ha... can be: "not so fast!"

    I buy this subscription at the end of the trial and my bet is that the color picker / working on the purchased version when I "tap tap" to pick up the

    same color II had chosen.  Wouldn't it be good to have a monitor of sorts that says you, what color (s) is used when you need to know, to go

    on the 'design' say after a break for tea, etc.  ?????  (    :

    I save my drawings when facts JPEGs and see now, there's a JPEG 2000... I don't know what it is all about.  I save pdf (1) and a jpeg.  Hope that this sounds

    like what we "do"... When we know much more than me.

    And finally, what program or tool, can a use to put a 'framework' (border) around an eg: 5 x 7 design (again, my goal is for my greeting cards designs.  Are there

    another of Adobe products, I would have to do this.  Free hand has not worked so well, so far.

    I'm in advance, so grateful to you - anyone you may, for your help.  I'm on my way 'Hooray' last now in the hope of success soon... I am a senior of 71

    and so feel I have to really "go there" and learn these basics to ensure my chances of success, at least. Thank you, thank you & thank you! CDW

    Please post in the Photoshop forum.

    http://forums.Adobe.com/community/Photoshop

    Bob

  • Background color for the radio button does not change during execution

    Hi everyone,

    I set the background color of shapes in blue in the formsweb.cfg file. I used 4 radio buttons in the form and at the time of execution, the background color of the option button is gray.

    So I used SET_ITEM_PROPERTY trigger to set the background color, but it is not chaning. It remains grey.

    SET_ITEM_PROPERTY('TRANS_MASTER.) MODE_OF_PAYMENT', BACKGROUND_COLOR, 'r90g117b148'); - Radio button group

    SET_ITEM_PROPERTY('TRANS_MASTER.) CASH', BACKGROUND_COLOR, 'r90g117b148'); - Radio button
    SET_ITEM_PROPERTY('TRANS_MASTER.) CREDIT_CARD', BACKGROUND_COLOR, 'r90g117b148'); - Radio button
    SET_ITEM_PROPERTY('TRANS_MASTER.) CREDIT_CUSTOMER', BACKGROUND_COLOR, 'r90g117b148'); - Radio button
    SET_ITEM_PROPERTY('TRANS_MASTER.) REDEEMVOUCHER', BACKGROUND_COLOR, 'r90g117b148'); - Radio button

    I used the RGB color as r90g117b148.

    Please help me,

    Thanks in advance,

    Published by: lola amrani may 5, 2010 07:56

    Hello

    When the desig, assign ownership of background color for group of Radio buttons and boxes option for

    François

Maybe you are looking for

  • Photos on the text disappear not once deleted.

    I deleted the pictures on my phone to text message, but they still appear on the details page of the thread in the text. the other person needs as well delete them so that they will show is no longer? is there another way to get rid completely withou

  • Why firefox uses so much memory?

    For several months, Firefox has eaten memory like crazy. Once I get more than 5 tabs open or that you have Firefox running for more than an hour, the memory usage hit about a GB. If I continue to let go beyond that, it will hit 1.5 to 2 GB and it mad

  • When I go to google.co.uk, logos and text are tiny - other fine sites

    All of a sudden yesterday, noticed that google.co.uk doesn't displays properly, either on the home page or results. The logos are tiny and tiny and unreadable text. All the other site is displayed correctly. Have you tried re-installing and different

  • I can't record a change of region.

    Try to change the region. Live in the Netherlands, but it is set to the United States. This creates a problem with the calendar. Week numbers are incorrect. When I change the region. It just goes back to the United States? Any ideas?

  • Satellite A500 - very low micro - Windows 7

    I just bought a Satellite A500-026 and although I increased the gain and the boost to the microphone up and turned on and off modes of noise control three microphone, the microphone performance is very low and essentially unusable unless we talk very