Rotate a square

Hello All,

I am newbie to Xojo.
How can I rotate a square with 90 degrees?
Please send an example.

Greetings,
Gal Zsolt
(~ CalmoSoft ~)

uh… rotating a square 90degrees results in a square that is exactly the same as the original square…

Hello Dave et All,

I forgot to mention that the square contains a number as label.

Greetings,
Gal Zsolt
(~ CalmoSoft ~)

https://forum.xojo.com/47994-rotate-picture-without-distortion

Hello Beatrix et All,

Thanks for your help but I want to rotate a square button not an image.

Greetings,
Gal Zsolt
(~ CalmoSoft ~)

BevelButton with rotated image

Hello Rudolf,

Thanks for your useful help.

Greetings,
Gal Zsolt
(~ CalmoSoft ~)