views:

27

answers:

1

Hi all

i am not implementing touch event. i am using FieldChangeListener the problem which i am facing is , if i am clicking outside the CustomButtonField then also the click event is generated how should i restrict only to the CustomButtonField.

Thanks alot

A: 

The listener will be invoked on all change events but you also get the field that changed (in the fieldChanged function), so why not use that to make sure it is your field that was "changed"?

Tamar
yes i have checked the buttonfield in the fieldChanged but its not working
rupesh
What do you mean? You get the click event and it is the wrong field?
Tamar
If i am clicking any where on the screen, the button which is focused is getting clicked
rupesh