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

Adobe AIR Development

Reply
Developer
Posts: 167
Registered: ‎12-17-2010
My Device: Bold 9000
My Carrier: Vodafone
Accepted Solution

Round radio buttons possible?

Is it possible to create round radio buttons in AIR instead of button-like radio buttons? I find the button-like ones misleading...

 

Eugene

My PlayBook App: Checklists
Developer
Posts: 6,541
Registered: ‎10-27-2010
My Device: HTC One, PlayBook, LE Z10, DE Q10
My Carrier: Verizon

Re: Round radio buttons possible?

Yes, but you will have to build it yourself.  In this case, probably easiest to use image as skins to show the 4 different states (selected,not selected, select disabled, non selecteed disabled).  It would be pretty easy.  Make certain your control is about 45px in size.  If you make it look like a BB control (use of blue), would be happy to add it to the community library.  If you get stuck, let me know.

Developer
Posts: 30
Registered: ‎03-31-2011
My Device: Curve
My Carrier: Rogers

Re: Round radio buttons possible?

Actually, if you use the QNX skins from the SDK, you get normal looking radio buttons! I have no idea why the default ones are so...un-radio-button-like, but there you go.

 

qnx.ui.skins.buttons.RadioButtonSkinWhite

Developer
Posts: 6,541
Registered: ‎10-27-2010
My Device: HTC One, PlayBook, LE Z10, DE Q10
My Carrier: Verizon

Re: Round radio buttons possible?

Great.  Thanks for pointing that out.

Developer
Posts: 167
Registered: ‎12-17-2010
My Device: Bold 9000
My Carrier: Vodafone

Re: Round radio buttons possible?

Thanks erasmus, it works!

I'm still not very happy with how they look (you can hardly see one is selected), but it's better than the buttons.

Eugene

My PlayBook App: Checklists
Developer
Posts: 30
Registered: ‎03-31-2011
My Device: Curve
My Carrier: Rogers

Re: Round radio buttons possible?

No problem :smileyhappy: I created my own skin for my app - I will try to dig up the code and post it here this evening.

Contributor
Posts: 20
Registered: ‎03-24-2011
My Device: Playbook
My Carrier: telus

Re: Round radio buttons possible?

If you have Flash CS, you can find its radio buttom class 

 

import fl.controls.RadioButton;
import fl.controls.RadioButtonGroup;

 

Hope it helps

New Developer
Posts: 15
Registered: ‎10-30-2010
My Device: Not Specified

Re: Round radio buttons possible?

There are tonnes of flash interface buttons etc on activeden.net I usually shop around there if i'm looking for anything interface related that I don't want to make myself.