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
Contributor
Posts: 30
Registered: ‎02-20-2011
My Device: 9700
My Carrier: 3 Australia
Accepted Solution

round iconbutton

Hi Guys,

 

How can I make round IconButton(or simply any button round)?

 

Problem with IconButton with a round icon is that it always shows the edges of the button.

 

Regards

 

 

Developer
Posts: 216
Registered: ‎02-18-2010
My Device: 9350,8520
My Carrier: no

Re: round iconbutton

you can use png image instead of button. 

New Developer
Posts: 11
Registered: ‎12-17-2010
My Device: Not Specified

Re: round iconbutton

You can override the paint method or else you can use image instead

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

Re: round iconbutton

If you're going to roll your own, be certain to give the user feedback on the "pressed" state either by showing a different color image, color border, etc.  A you will need to trap when the mouse leave event occurs since the person moved their finger off the target before the mouse up event occured.

Highlighted
Contributor
Posts: 30
Registered: ‎02-20-2011
My Device: 9700
My Carrier: 3 Australia

Re: round iconbutton

That's a great tip thanks a lot.