03-09-2011 06:24 AM
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?
03-09-2011 08:44 AM
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
03-09-2011 08:45 AM
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.