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. New to the forum? Please visit the ‘Getting Started’ link below.
inside custom component

Java Development

Reply
Developer
hiral
Posts: 54
Registered: ‎11-12-2009

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?

 

Thanks..

 

Please use plain text.
Developer
simon_hain
Posts: 13,790
Registered: ‎07-29-2008
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
Please use plain text.