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: 188
Registered: ‎07-19-2012
My Device: Z10 Limited Edition and Dev Alpha C
My Carrier: Movistar-Venezuela

How to create a semicircle Slider?

[ Edited ]

 

New Hello brothers, I am working with the project

https://developer.blackberry.com/cascades/documentation/dev/integrating_cpp_qml/custom_control_tutor...

 

This project I measured 360 degrees, I want to have the same but with 180 degrees for use in my application as pictured. I have no idea how to vary the mathematics of Hpp and Cpp

 

IMG_00000030.png

 

also where it should show 90 degrees, shows 180 degrees

 

 


Follow me in Twitter:

@Marcossit

BBM Channel:

MarcossitDev: C0002C366  

DeviceSuite For BlackBerry 10:

Link to Download DeviceSuite:

Support was successful? Accept as Solution and click on:


Developer
Posts: 188
Registered: ‎07-19-2012
My Device: Z10 LE
My Carrier: Three

Re: How to create a semicircle Slider?

The key to this is the rotationZ() property of your slider, you should have a check in there for make sure it stays within the bounds of 0° to 180°.

 

As for implementing it, that's more of a general C++ issue, so I'd advise taking a few hours to read up about basic usage of C++ - you're going to find it very difficult to make a cascades app if you're not familiar with the basics.



Did this post help you? If so, please make sure to "like" it!