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.
Asked
Active
Viewed 1,627 times
1
-
1Is a pop-up menu appearing when you give RichTextField focus? Is that the problem? – Swati May 18 '11 at 15:25
-
1no i cant set focus.It automatically appear while creating richtextfield – karthikeyan s May 20 '11 at 11:03
-
1The stack overflow link may help you: http://stackoverflow.com/questions/4918778/avoid-showing-menu-on-button-click – Jisson May 18 '11 at 11:49
1 Answers
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
- 20,200
- 11
- 84
- 98

ram
- 21
- 2