07-28-2010 07:49 AM
Hello Guys Plz Help me,
I want to Change color of ListField Content.
How can i achieve this. Plz Help me, It's urgent.
07-28-2010 07:51 AM
graphics.setcolor
07-28-2010 07:51 AM
07-28-2010 08:29 AM
Hi BB-Dude,
I got this from that Link;
But I am not understand that. How can i implement this. Plz Tell me. Thanks.
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);
}
07-28-2010 08:33 AM
Look at the following:
Your class should extend ListField and implement ListFieldCallBack
That should get you started.
07-28-2010 08:39 AM
I am Using This,
I want to ask Only that Where and when I can call that Method drawListField.
07-28-2010 08:42 AM
You do not need to call the drawListRow method. It is handled automatically.
07-28-2010 08:44 AM
Ok. I am trying.
Thanks.
07-28-2010 01:06 PM
This sample should help out.
Create a colour ListField
http://supportforums.blackberry.com/t5/Java-Develo