开发者

Blackberry popup menu appear on Button click event

开发者 https://www.devze.com 2023-03-06 11:58 出处:网络
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 f开发者_开发知识库ocus. How can I solve this

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 f开发者_开发知识库ocus. How can I solve this? I am overriding RichTextField method, and that is the reason the popup menu appears.


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

精彩评论

暂无评论...
验证码 换一张
取 消