karthikeyan s
karthikeyan s

Reputation: 51

Blackberry popup menu appear on Button click event

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.

Upvotes: 1

Views: 1637

Answers (1)

ram
ram

Reputation: 21

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;
    }
}

Upvotes: 2

Related Questions