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

Native Development

Reply
Developer
Posts: 224
Registered: ‎03-29-2012
My Device: 9900
My Carrier: Wind
Accepted Solution

CustomButtons

Hey all, i am really appreciating the cascades controls available. I want to make a circular button and was wondering what the best way to do this would be. I plant to have the button change color onTouched and was wondering if i could modify an existing control or if I should make one from scratch.

 

Right now I was just going to make some images, a normal and touched version and sub them in the onTouch, is there a better way to achieve this? Additionally, when subbing the images, what would I have to do to get a nice transition like in the existing button control? Is there a way to have a fading transition with the subbing of images? Thanks!

Retired
Posts: 138
Registered: ‎05-11-2012
My Device: Developer
My Carrier: Developer

Re: CustomButtons

Sounds like you are on the right track - if you look at the Circular Slider tutorial case that will show you how to implement a circular button.

 

Good Luck

Graham

Retired
Posts: 138
Registered: ‎05-11-2012
My Device: Developer
My Carrier: Developer

Re: CustomButtons

https://developer.blackberry.com/cascades/documentation/ui/integrating_cpp_qml/custom_control_tutori...

 

Sorry, meant to include a link to the Circular Slider

 

Graham