Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Java Development

Reply
New Developer
Posts: 22
Registered: ‎04-07-2008
My Device: Not Specified

Dialog with ButtonField on HorizontalFieldManager

Hi,

 

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.

 

Regards,

nd 

Highlighted
Developer
Posts: 19,636
Registered: ‎07-14-2008
My Device: Not Specified

Re: Dialog with ButtonField on HorizontalFieldManager

Sorry, not had time to look carefully, but first glance suggests you should be using PopupScreen rather than Dialog.  Have you tried that?