Rotate controls in a circle

ExcludeReality

Active Member
Licensed User
I want to be able to rotate controls on a form in a circular shape.
My lack of geometry kills leaves me scratching my head for this one.

I attached an unsuccessful example that rotates the controls in a rhombus.
For some reason the "path" of the controls is expanding, i.e. they move further away from the center.


Please explain how this can be achieved.
Thanks.
 

Attachments

  • Rotation Prototype.sbp
    1.6 KB · Views: 347
Last edited:

ExcludeReality

Active Member
Licensed User
Something like this? The top left of the image is the point that is describing the circle, you might want to add offsets to x and y to make the centre of the image trace the circle.

The code works perfect!

Thanks.
 
Cookies are required to use this site. You must accept them to continue using the site. Learn more…