D davelew1s Active Member Licensed User Longtime User May 15, 2015 #1 Hi! I recently discovered this lib by Informatix and i've incorporated some of the features into my app but am stuck with one. I want to rotate a label about it's center, i've played with the properties but cannot find a solution. Any help or pointers? thanks Dave.
Hi! I recently discovered this lib by Informatix and i've incorporated some of the features into my app but am stuck with one. I want to rotate a label about it's center, i've played with the properties but cannot find a solution. Any help or pointers? thanks Dave.
thedesolatesoul Expert Licensed User Longtime User May 15, 2015 #2 You need to set the Pivot point. There is a class i think called ViewHelper to do that. Upvote 0
D davelew1s Active Member Licensed User Longtime User May 16, 2015 #3 Thanks for your reply thedesolatesoul I thought i would have to set the pivot point but it's how!. I had a look at Viewhelper but that didn't help me. I'll keep playing. Dave. Upvote 0
Thanks for your reply thedesolatesoul I thought i would have to set the pivot point but it's how!. I had a look at Viewhelper but that didn't help me. I'll keep playing. Dave.
thedesolatesoul Expert Licensed User Longtime User May 16, 2015 #4 You set the pivot to where you want to rotate around. If you rotate around the Y axis, Code: Dim n As noaViewHelper n.setPivotY(Label, Label.height/2) And then rotate the Y property. If you still struggle see this example: https://www.b4x.com/android/forum/threads/animate-the-flipping-of-a-label.37749/#post-223300 Upvote 0
You set the pivot to where you want to rotate around. If you rotate around the Y axis, Code: Dim n As noaViewHelper n.setPivotY(Label, Label.height/2) And then rotate the Y property. If you still struggle see this example: https://www.b4x.com/android/forum/threads/animate-the-flipping-of-a-label.37749/#post-223300
D davelew1s Active Member Licensed User Longtime User May 18, 2015 #5 OK thedesolatesoul! I thought this would solve my problem ... but it dosen't. I've tried various ways but can't get it to rotate the about pivot point. I've sent a zip file of my tester, am I doing it right? Thanks for your help Dave. Attachments rotate test.zip rotate test.zip 7.5 KB · Views: 587 Upvote 0
OK thedesolatesoul! I thought this would solve my problem ... but it dosen't. I've tried various ways but can't get it to rotate the about pivot point. I've sent a zip file of my tester, am I doing it right? Thanks for your help Dave.
thedesolatesoul Expert Licensed User Longtime User May 18, 2015 #6 What is this line supposed to do: Code: AnimRotateY.InitializeFloat(Panel1, AnimRotateY.PROPERTY_PIVOT_Y, 0, 360, "") Upvote 0
What is this line supposed to do: Code: AnimRotateY.InitializeFloat(Panel1, AnimRotateY.PROPERTY_PIVOT_Y, 0, 360, "")
thedesolatesoul Expert Licensed User Longtime User May 18, 2015 #7 You should use: Code: AnimRotatY.InitializeFloat(Panel1, AnimRotatY.PROPERTY_ROTATION_Y, 0, 360, "") Upvote 0
D davelew1s Active Member Licensed User Longtime User May 18, 2015 #8 I needed to use 'n.setPivotx' aswell to get the rotation I want. Thanks again Dave. Upvote 0
thedesolatesoul Expert Licensed User Longtime User May 18, 2015 #9 Yes, so it is working the way you want it to now? Upvote 0
D davelew1s Active Member Licensed User Longtime User May 18, 2015 #10 More or less just need some fine tuning. The noaViewHelper has given me alot to play with. Thanks Dave. Upvote 0
More or less just need some fine tuning. The noaViewHelper has given me alot to play with. Thanks Dave.
thedesolatesoul Expert Licensed User Longtime User May 18, 2015 #11 Cool. It would be nice if you could change the thread title and attach your solution at the end, in case someone else needs help with the same thing. Upvote 0
Cool. It would be nice if you could change the thread title and attach your solution at the end, in case someone else needs help with the same thing.
D davelew1s Active Member Licensed User Longtime User May 22, 2015 #12 Thanks to thedesolatesoul I was able to solve my problem ... along the way I found other rotations which are in the example. Hope it hepls. Dave. Attachments rotate label.zip rotate label.zip 7.7 KB · Views: 631 Upvote 0
Thanks to thedesolatesoul I was able to solve my problem ... along the way I found other rotations which are in the example. Hope it hepls. Dave.
thedesolatesoul Expert Licensed User Longtime User May 22, 2015 #13 Thank you. Not only is the example useful, this is the most efficient use of the forum by posting the solution as an example and changing the thread title. Upvote 0
Thank you. Not only is the example useful, this is the most efficient use of the forum by posting the solution as an example and changing the thread title.