dunbarx at aol.com
dunbarx at aol.com
Fri Oct 28 15:55:16 EDT 2011
Simulate it. Should be easy and fun.
Make a few buttons (not a field?) of the same rect that overlie each other. Each button has its own name or label. Button 1 is fully shown. The others all have their heights set to 0.
Take one button and in a repeat loop smoothly change its height from some value to zero in, say 2 seconds. At the same time, take another button and increase its value so that the height of the first is compensated by the height of the second. In other words, as btn 1 decreases from the top down, say, btn 2 increases from the top down.
You can do this with as many buttons as you wish, I should think, and at any rate.
From: stephen barncard <stephenREVOLUTION2 at barncard.com>
To: How to use LiveCode <use-livecode at lists.runrev.com>
Sent: Fri, Oct 28, 2011 10:37 am
Subject: Re: Rotating button
What a control that would be!
I've seen what SVG graphics can do...I imagine it can be done in LIvecode,
although I haven't seen text displayed like you describe, it would seem
possible. Points is points. but the math required...
On 28 October 2011 11:12, Ralph DiMola <rdimola at evergreeninfo.net> wrote:
> Is it possible to create a polygon button that constantly spins with
> different text on each of the visible sides? 2 sides would be parallel to
> the eye point so they would never be seen. Sort of like the James Bond
> spinning license plate. This button when pressed would fire off a message.
> When the message is processed I would like to know the what side(s) were
> visible/pressed or know rotation from 0 to 359.999 degrees or rads or
> whatever coordinate system's value when the button is pressed. The button
> also should stop spinning when pressed.
> Thanks all.......
> Ralph DiMola
> IT Director
> Evergreen Information Services
> Phone: 518-636-3998 Ex:11
> Cell: 518-796-9332
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
San Francisco Ca. USA
more about sqb <http://www.google.com/profiles/sbarncar>
use-livecode mailing list
use-livecode at lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription
More information about the Use-livecode