1

I have a problem that popup menu appear when I click a button field. I will solve it by using Buttonfield.consumeclick but it also appears on RichTextField focus. How can I solve this? I am overriding RichTextField method, and that is the reason the popup menu appears.

Michael Donohue
  • 11,606
  • 5
  • 29
  • 44

1 Answers1

2
ButtonField c = new ButtonField("button", FIELD_LEFT | ButtonField.CONSUME_CLICK) {
    protected boolean navigationClick(int status, int time) {
        Status.show("Button has clicked");
        // write your code.
        return true;
    }
}
Sergey Glotov
  • 19,479
  • 11
  • 78
  • 93
ram
  • 21
  • 2