08-17-2012 02:18 AM
I want to change focus color of objectchoicefield. I have used following code. But still i am getting default focus color i.e. blue.
combo = new ObjectChoiceField("",choice)
{
boolean _inFocus = false;
public void onFocus(int direction)
{
_inFocus = true;
super.onFocus(direction);
this.invalidate();
}
public void onUnfocus()
{
_inFocus = false;
super.onUnfocus();
this.invalidate();
}
public void paint(Graphics g)
{
g.setColor(Color.BLACK);
if ( _inFocus )
g.setBackgroundColor(0x00D8632E);
else
g.setBackgroundColor( Color.WHITE );
g.clear();
super.paint(g);
}
};
08-17-2012 03:24 AM
check this
08-17-2012 03:51 AM
08-17-2012 03:54 AM
08-21-2012 06:32 AM
08-21-2012 07:09 AM
08-21-2012 07:35 AM
08-22-2012 06:57 AM
Resolved then?
Please mark it so.....
08-30-2012 06:13 AM
08-30-2012 06:18 AM
Simons suggestion was a PopupScreen with an ObjectListField.