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.
Tags: BlackBerry Developers
Similar Questions
-
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.
-
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
-
Change the background color for a selected item in a ListView?
Hello
No idea how to change the color of tbackground of a ListView selected item to blue for a different color?
I tried wrapping the ListView in a container, then by changing the background color of the container, but it does not work. And ListView, nor the ListItemComponent takes a background attribute.
Thank you
Oh, I did that last night.
Thus, in the container for StandardItem, add this line:background: ListItem.selected || ListItem.active ? Color.create("#4D9EC9") : Color.Transparent
and onTriggerred of the signal, add two lines:
// for highlighting listView.select(indexPath, true); // for clearing highlight listView.clearSelection();
PS: listView is the id of the ListView
ListView { id: listView ....
-
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.
-
Change the background color for amx-commandButtons
I can't change the background color of amx-commandButton... even the css change... background still shows gray
{.amx-commandButton
position: relative;
background-color: white;
border-radius: 3px;
white-space: pre wrap.
-webkit-box-pack: center;
content justify: Center;
border: 1px solid #0572CE;
}
Ben.90, try adding a background picture: none for your css definition. Gray is a background image degraded in the skin of mobileAlta.
The best way to debug and difficulty css - http://www.ateam-oracle.com/debugging-maf-applications-on-android/
-
How can I change the background color for the entire model
I'm trying to change the color of gray background for the blue container. I tried to find the location of this gray background in the CSS, but failed.
Could someone help me understand what line in the CSS file is responsible for the color of the container?
Thank you
Anna
No worries.
It seems that the background color is controlled by this tag in your style.css file:
body #header body #footer {}background-color: #343434;}
This can be consulted on line 1523 of this file. Change only the blue that you want and you should be good.
I hope this helps.
-
I am trying to create a book in iPhoto. I can set the background color, but it doesn't seem to work between photos that appears white by default. How can I make the background color of work between photos?
You can not
but to see exactly what you always get an overview of your book before ordering
LN
-
How to change the background color for the text TreeField?
Hello
I call graphics.setBackgroundColor () of in the drawTreeItem() method, but it does not affect the background color of the graphics.drawText () method. Any ideas on how I can change the background color of text?
Thank you
I got this works using Graphics.drawFilledPath () to draw in a rectangle of background color before drawing the text.
-
How do you define the background color for a text box
In older versions, that I was able to set the background color in a text box, I want to do the same in this newer version and I can not find where I would choose this option
Hi alanb.
Please type your text in the text box, now in the right pane of comments you will see your text, right click & Select "Properties".
In the properties box, select the fill color to fill in the color in the text box.
I would like to know if it works.
Kind regards
Nicos
-
How to change the background color for message
Hi all
Forms how can 10G I change the background color in the message box. ?
I mean when I give a message like:-MESSAGE('HELLO'); then he comes in a window pop up.
I want to change the color background back popup window.
Published by: LuKKa Sep 22, 2010 15:36Create alerts using Navigator of the form object.
Set the title and the message you have requested (or set the message on the duration of SET_ALERT_PROPERTY)
To view your message, create a procedure like that...PROCEDURE MSGBOX(pMessage IN VARCHAR2) IS vAlert NUMBER; BEGIN SET_ALERT_PROPERTY('ALERT_NAME',ALERT_MESSAGE_TEXT,pMessage); vAlert:=SHOW_ALERT('ALERT_NAME'); END;
Now in your code, use like that...
MSGBOX('Your message goes here...');
-Clément
-
Change the background color for the postPrint event
I have a dropdown menu with a solid background (153, 203, 255) color.
How can I change the color of white for event postPrint?
Concerning
Hello
This is the script I use. Note that you must specify the reference of the user interface for the object type:
var vName = this.somExpression; var fieldObj = xfa.resolveNode(vName + ".ui.#choiceList.border.fill.color"); fieldObj.value = "255,255,255"; // white /* Check the type of object and change the .ui reference: Date field = #dateTimeEdit Dropdown = #choiceList Checkbox = #checkButton Text field = #textEdit Numeric field = #numericEdit */ Also the object has to have a background colour to start with. Hope that helps, Niall
-
How can I change the background color for my site (newbie question)!
Hi all
I am completely new to Dreamweaver and to create my first website. I have a div container with a grey background color but I wanted the background of the body (IE outside that div) to be black. I'm displaying in Internet Explorer.
I don't know that it's a simple solution - suggestions welcomed.
The URL is http://www.fractionltd.com
Thank you!
David
Take the ' # ' off the coast of the body... tag you apply a style to an id of the div to the body instead of the tag of the real body. That's why your color is not displayed.
-
Using the background color for color change
Goal: make type-dependent color on color background to maximize readability (maximize the contrast).
that is where the background is white type must be black and vice versa.
I tried to apply masks to clip in vain.
Perhaps there is a technique of color that will create this result.
Anyone help is most appreciated.
Thanks, Michele
One way:
The Algeria (HAVE 10 format, 30 kb)
-
This component has suddenly changed into dark blue. With the police of the inspected items in the colors of foreground dark that it is very difficult to read. How to bring back the white background? Thank you.
Apply the following user with the Stylish extension style.
@namespace url(http://www.w3.org/1999/xhtml); @-moz-document url("chrome://browser/content/devtools/markup-view.xhtml") { body { background: white !important } }
If you need to change anything else, you can use the extension DOM Inspector to examine the UI elements ("chrome").
If you need help with the CSS code, see below for a starting point.
Maybe you are looking for
-
My USB ports for Entertainment of HP Pavilion laptop dv7-2277 cl stopped working. I tried to update to Windows, since before system restore and still no luck. the port on the left side of the laptop shown peripheral unknown whenever I plug anything
-
I can't find for OS gateway G1-715 on drivers and manuals section, could you please tell me what and where it is. Thank you.
-
With MS xp Dell dimension. Code 39 can no more control cd r/w or dvd readers.
Dell Demension using MS windows XP. 1.8 g hz can no longer access the cd r/w or dvd players. I ordered both, separately, if you use a power source and a usb adapter. Both work very well. I swapped tablecloth on motherboard connections. same resul
-
I accidentally deleted the photo from my computer and they are no longer in a basket. Is it possible to recover? I have not all copies. I heard even deleted files stored somewhere on the hard drive.
-
PLEASE, I BEG YOU! Help me (my game CRASHES) every 5 Minutes
Counter Strike 1.6, condition ZERO more half-life 1.1 (no steam) November 2011 I am running: Windows Vista Edition Home Premium with Service Pack 3 x 86 OEM (April 11, 2009) My operating system keeps opening to the top of the screen "Solution of prob