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

Posts: 54
Registered: ‎11-12-2009
My Device: Not Specified

Dialog : can i align the choice buttons horizontally?

Hi all,


I am exploring the Dialog class and used the constructor where we can specify the choices to be displayed on the dialog.



public Dialog(String message,
              Object[] choices,
              int[] values,
              int defaultChoice,
              Bitmap bitmap)




These choices appear in the form of button fields that are vertically aligned, one below the other.


However, I would like to know if there is some way of arranging them horizontally across the screen width.


I know the same may be achieved using the PopupScreen instead of Dialog.


I wonder if over-riding the doLayout() of my Dialog can help, but then I dont have any control over the choice-buttons created and hence cannot lay out them horizontally.


Anyone faced a similar problem?




Posts: 17,012
Registered: ‎07-29-2008
My Device: Z10 LE, Z30, Passport
My Carrier: O2 Germany

Re: Dialog : can i align the choice buttons horizontally?

use popupscreen
feel free to press the like button on the right side to thank the user that helped you.
please mark posts as solved if you found a solution.
@SimonHain on twitter