03-25-2011 12:12 PM
Hello everybody !
Here is my question.
I am creating a cutom screen with some ButtonField, overriding MainScreen, and implementing FieldChangeListener.
In this screen I have some menu items which are set using the this.addMenuItem method.
I am listening the event on the buttons implementing the fieldChanged(Field field, int context) method.
When I click one of my buttons, the specific action is invoked properly but the menu items are also displayed in the middle of the screen (in the specific middle menu display of the 9800).
How can I disable it ?
Thanks in advance.
Solved! Go to Solution.
03-25-2011 12:49 PM
Create your ButtonFields with ButtonField.CONSUME_CLICK style bit. Also consider adding ButtonField.NEVER_DIRTY (not for this problem, but a good idea anyway).