09-26-2008 12:29 AM
I have extended Dialog class and create a dialog with a CheckBoxField and Two ButtonFields, which are laid out using HorizontalFieldManager.
How do I get the button clicked event for the buttons. I override the trackwheelClick() and check which field was clicked using this.getSelectedValue().
I do get the event for Checkboxfield but not the button click. I tried getting the HorizontalFieldManager.getIndex() and other API's but I am not sure which one will give me the button click event. Also to add, trackwheelClick() function does gets called on button click but I cannot identify if the button is clicked and I want to close the dialog on button click event.