Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Java Development

Reply
New Developer
Posts: 3
Registered: ‎09-28-2009
My Device: Not Specified

How to change the cursor color of an EditField

Hi,

 

I would like to overwrite the default scheme color of the cursor of an EditField. Is there anyway to do that?

 

Thanks!

New Contributor
Posts: 9
Registered: ‎07-10-2010
My Device: 8300
My Carrier: Developer

Re: How to change the cursor color of an EditField

I have the same problem. I have a basic field array  and i want to change that cursor color according to my selected color actually i do now want to show that color.?

my work will be done by hiding the cursor or change the color of cursor.....

 

Any help will be appreciated

 

 

 

learn and implementation
Developer
Posts: 19,636
Registered: ‎07-14-2008
My Device: Not Specified

Re: How to change the cursor color of an EditField

The cursor is drawn by drawFocus.  Never tried it, but override drawFocus, and if the focus is 'on', then set the Graphics color and call super.drawFocus(...).  Let us know how you get on.