Rotate a button 90 degrees

Anything beyond the basics in using the LiveCode language. Share your handlers, functions and magic here.

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
kresten
Posts: 153
Joined: Tue Sep 30, 2008 3:01 pm
Contact:

Rotate a button 90 degrees

Post by kresten » Sun Mar 10, 2013 2:06 pm

Hi
I need to create a palette, which will permit user to select a button (which may be long and already showing a text)
I only need options to turn the button in steps of 90 degrees.
It sounds so simple, but I have found no simple solutions such a basic feature.
I am not to good in scripting, so if somebody could write the lines of handler to perform the operation, I will be most grateful.
The purpose is optimizing the user driven development of a freeware citizen diary, http://www.phenomenalog.dk , where Mark Schonewille just has added a first version of a mind mapping function
Ps: Congratulation to us all for the success of the live code-freeware kickstarter
kresten.bjerg at psy.ku.dk

Klaus
Posts: 14213
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: Rotate a button 90 degrees

Post by Klaus » Sun Mar 10, 2013 2:48 pm

Dag Kresten,

this is only possible if you im- or export a snapshot from that button and
then rotate (set the angle) of the resulting image and use it as the icon
for this (or another?) button!

So you will also need to manage the newly created image somehow.
But then you still do not have a "down" state (hiliteicon) icon.


Best

Klaus

Post Reply