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

New Developer
Posts: 1
Registered: ‎11-09-2008
My Device: Not Specified

SetFocusRect ??

Is there a way to set the focus rectangle as opposed to just getting it?

I have a class extending ObjectChoiceField, and I handle the drawing of the actual field myself.

I would like to be able to set the focus rectangle (to play nice with the frameword althought I don't really need it at this point), so that GetFocusRect will return a valid value.




BlackBerry Development Advisor
Posts: 15,852
Registered: ‎07-09-2008
My Device: BlackBerry PRIV
My Carrier: Bell

Re: SetFocusRect ??

You could accomplish this by overriding the getFocusRect method in your custom class and returning the value valid for your field.
Mark Sohm
BlackBerry Development Advisor

Please refrain from posting new questions in solved threads.
Problem solved? Click the Accept As Solution button.