I am using a bitmap field containing a small image.
When the focus appears in this image, the blue focus color does not appear, how can I set the width and height of the focus
my code ::
contract_image_field = new BitmapField(contract_image,Field.FOCUSABLE)
{
public void getFocusRect(XYRect rect)
{
rect.width=0;
rect.height=0;
}
protected void onFocus(int direction)
{
myScreen.this.invalidate();
super.onFocus(direction);
}
protected void onUnfocus()
{
myScreen.this.invalidate();
super.onUnfocus();
}
};
contract_image_field.setBitmap(contract_image);
this is how I work with the image field,
although my image is clickable, but I do not see this blue color (I want this to help !!!)
changing width and height values in getFocusRect doesn't even solve the problem
source
share