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

Adobe AIR Development

Posts: 166
Registered: ‎03-04-2011
My Device: Playbook

Dialog box with multi-choice selection.



I'm very very new on Playbook development. I'm developing an ActionScript for Playbook.


I want to show a dialog box with a radio button list. The user must select one option and the press Ok button (not cancel button allowed).


How can I do that?



Posts: 119
Registered: ‎03-10-2010
My Device: Bold 9000
My Carrier: Rogers

Re: Dialog box with multi-choice selection.



AFAIK, there is no off-the-shelf component to do that. You probably have to create your own dialog extending Sprite. Then you should add the other UI elements you want.


If you followed the HelloWorld tutorial, you'll see that everything is there (adding Button, listen to events, etc...)


The only difference is that to look like a dialog box, you'll have to display your sprite not using the whole screen, and centered to it.


I hope it helps


(*) Kudo-me if you really think I helped you!
My plug: I'm doing a Mobile Experiment, reported on my Blog: Check it out!.
Paulo Garcia
http://www.mobilecreators.com - Twitter: http://twitter.com/mobilecreators
Posts: 6,541
Registered: ‎10-27-2010
My Device: HTC One, PlayBook, LE Z10, DE Q10
My Carrier: Verizon

Re: Dialog box with multi-choice selection.

You cannot do this with the native dialog package system the dialogs are run as a service in the OS, so you can only use the "standard" dialogs offered.


However, there is a community library that mimics the dialog system as a client library.  The API is the same as well as the look of the dialogs.  You can then extend the base dialog class and add your own controls.




In your case, you dont have to have a "radio button" list, you can just have a simple list of items that the user can select from.