I had created BitmapField as ...
Code:
public class MyCanvas extends MainScreen
{
BitmapField start = new BitmapField(startBitmap, BitmapFieid.FOCUSABLE);
ButtonField okButton = new ButtonField("Ok", ButtonField.CONSUME_CLICK | ButtonField.FOCUSABLE);
hfm.add(start);
hfm.add(okButton);
}
But there is no property for BitmapField as
Code:
BitmapField.CONSUME_CLICK
to avoid the default menu that comes when clicked on it.
ButtonField has "CONSUME_CLICK" property so we can set for it as
Code:
ButtonField okButton = new ButtonField("Ok", ButtonField.CONSUME_CLICK | ButtonField.FOCUSABLE);
The TouchEvents are happening properly by overriding touchevent().
Only I want to set "CONSUME_CLICK" property for BitmapField to avoid the default menu that comes when clicked on it.. How to do it ?