How to make the Spinner widget spin faster?

LiveCode is the premier environment for creating multi-platform solutions for all major operating systems - Windows, Mac OS X, Linux, the Web, Server environments and Mobile platforms. Brand new to LiveCode? Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
liveCode
Posts: 119
Joined: Sun Oct 17, 2021 5:53 pm

How to make the Spinner widget spin faster?

Post by liveCode » Fri Apr 08, 2022 10:34 am

How to make the Spinner widget spin faster?

richmond62
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 9285
Joined: Fri Feb 19, 2010 10:17 am
Location: Bulgaria

Re: How to make the Spinner widget spin faster?

Post by richmond62 » Fri Apr 08, 2022 1:11 pm

SShot 2022-04-08 at 15.10.17.png
-
The only way I found to change its speed was to change the Marker count.

bn
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 3990
Joined: Sun Jan 07, 2007 9:12 pm
Location: Bochum, Germany

Re: How to make the Spinner widget spin faster?

Post by bn » Fri Apr 08, 2022 10:01 pm

The refresh rate/spinning speed is hard coded into the widget as a constant and the widget advances ever 0.3 seconds. It is not settable from the outside of the widget.

Kind regards
Bernd

Klaus
Posts: 13806
Joined: Sat Apr 08, 2006 8:41 am
Location: Germany
Contact:

Re: How to make the Spinner widget spin faster?

Post by Klaus » Sat Apr 09, 2022 10:34 am

A rule of thumb:
If the inspector does not provide a way to change any property or value etc. of an object, then there is no way to do that!

There are some very, very, VERY few exeptions however.

richmond62
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 9285
Joined: Fri Feb 19, 2010 10:17 am
Location: Bulgaria

Re: How to make the Spinner widget spin faster?

Post by richmond62 » Sat Apr 09, 2022 1:51 pm

SShot 2022-04-09 at 15.49.12.png
-
Grow your own. 8)
Attachments
SPIN DOCTOR.livecode.zip
Stack.
(13.04 KiB) Downloaded 68 times

richmond62
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 9285
Joined: Fri Feb 19, 2010 10:17 am
Location: Bulgaria

Re: How to make the Spinner widget spin faster?

Post by richmond62 » Sat Apr 09, 2022 3:59 pm

For anyone interested, to generate the static images for the stack above, I ran a simple

Code: Select all

repeat until
loop, importing snapshots of the spinner widget every 7 ticks.

The only snag is that one ends up with bitmapped images that cannot be scaled very well should that be needed.

The FACT that very few widgets are able to be tweaked in any useful way does tend to make me anti-widget.

richmond62
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 9285
Joined: Fri Feb 19, 2010 10:17 am
Location: Bulgaria

Re: How to make the Spinner widget spin faster?

Post by richmond62 » Sat Apr 09, 2022 5:09 pm

Spin_Dryer.jpg
-
It is a very good thing indeed that my holiday is about to finish.

This 'thing' consists of 9 graphics, and the central one (the rotation path) can be dragged around.

Everything could be scaleable if someone more driven than me could be bothered.

The SPEED is set in the SPIN button script.

Disclaimer: No widgets were harmed during the making of this stack. 8)
Attachments
SPIN DRYER.livecode.zip
Stack.
(8.02 KiB) Downloaded 67 times

liveCode
Posts: 119
Joined: Sun Oct 17, 2021 5:53 pm

Re: How to make the Spinner widget spin faster?

Post by liveCode » Sat Apr 09, 2022 7:10 pm

Thank you all

jacque
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 7214
Joined: Sat Apr 08, 2006 8:31 pm
Location: Minneapolis MN
Contact:

Re: How to make the Spinner widget spin faster?

Post by jacque » Sun Apr 10, 2022 5:11 pm

richmond62 wrote:
Sat Apr 09, 2022 3:59 pm
The FACT that very few widgets are able to be tweaked in any useful way does tend to make me anti-widget.
It's possible if you learn LCB. I find some of the widgets to be quite useful even if untweaked, particularly the browser widget.
Jacqueline Landman Gay | jacque at hyperactivesw dot com
HyperActive Software | http://www.hyperactivesw.com

richmond62
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 9285
Joined: Fri Feb 19, 2010 10:17 am
Location: Bulgaria

Re: How to make the Spinner widget spin faster?

Post by richmond62 » Sun Apr 10, 2022 5:13 pm

It's possible if you learn LCB.
I would not doubt that for a moment.

However, maybe I expect too much to be able to do everything inwith a single programming language.

Post Reply

Return to “Getting Started with LiveCode - Experienced Developers”