Page 1 of 1

Progress Bar: continual spin

Posted: Fri Oct 28, 2011 8:20 pm
by townsend
Once when I was downloading some livecode sample apps,
I saw one where the Progress Bar just did a continual spin,
not based on any 'Thumb Position' property.

I thought, this could be useful. Now that I need it, I can't remember where I saw it.
Does anyone know how to set the Progress Bar to a continual spin?

Re: Progress Bar: continual spin

Posted: Fri Oct 28, 2011 9:18 pm
by dunbarx
Spin.

Do you mean it rotated? While it was progressing?

Re: Progress Bar: continual spin

Posted: Fri Oct 28, 2011 9:28 pm
by townsend
The progress bar would move from start to finish and back again, over and over.

Kind of like an animated GIF.

Re: Progress Bar: continual spin

Posted: Fri Oct 28, 2011 9:50 pm
by mwieder
Would one of the progress bar images in the Image Library do the trick for you?

Re: Progress Bar: continual spin

Posted: Fri Oct 28, 2011 10:18 pm
by townsend
Good idea. I'll use that for now.

When I see that original app again,
I'll post the Progress Bar settings back in this thread.

Re: Progress Bar: continual spin

Posted: Sat Oct 29, 2011 2:56 am
by deebee
There's one on revOnline, maybe this one?
http://revonline2.runrev.com/stack/440/Spinner-Store

Re: Progress Bar: continual spin

Posted: Wed Dec 14, 2011 7:16 pm
by slylabs13
The spinner does not work while a script is running, so far as I have been able to tell.

Re: Progress Bar: continual spin

Posted: Sat Dec 17, 2011 10:23 pm
by doc
Howdy townsend,

I've put together a custom progress bar control using an image aligned inside a simple graphic rectangle...
...you can use whatever image you want of your own preference and adjust the maximum "bar" width, speed and number of iterations pretty easily to suit your needs.

Works pretty well on my Win7 machine, but I haven't checked it out on any other platform. The stack and original image used is attached to this message if you want to take it for a test spin.

Best regards,
Doc

Re: Progress Bar: continual spin

Posted: Sat Dec 17, 2011 10:29 pm
by doc
I should note that you can easily code around using the reset button...
...I basically just used that while getting things set up, and didn't think about removing it.

-Doc-

Edit:
Added a slightly different variation in this test stack and without the reset button.

Re: Progress Bar: continual spin

Posted: Mon Dec 19, 2011 6:10 pm
by slylabs13
I have created a simple Spinner runtime to address the problem of blocking operations preventing the spinner from animating. Apparently attachments here are very limited, so contact me off list at bobs @twft. com to get your hands on it. This is MAC ONLY, unless someone else wants to piddle with it to get it to work with Windows.

You run the app from a stack by executing a simple Applescript:
tell application "Spinner"
activate
end tell

You can then send the app a few commands:
to change the location: send "moveMe" && quote & theLoc & quote to program "Spinner" -- put the screen location into theLoc first!
to change the prompt: send "setPrompt" && quote & thePrompt & quote to program "Spinner" -- put some text into thePrompt first!
to show the spinner window: send "showMe" to program "Spinner" -- it starts up invisible
to hide the spinner window: send "hideMe" to program "Spinner" -- it floats above all windows, even those from other apps

I highly encourage anyone who wants, to add to it. The first thing it needs is the ability to change the kind of progress indicator it uses. Right now it has an animated gif of a spinning wheel, but a new command or property could be added along with some other animated gifs to change that. A real progress bar could also be added that you could send a percentage to fairly easily.

Re: Progress Bar: continual spin

Posted: Mon Dec 19, 2011 6:51 pm
by sturgis
If you zip it first it should attach ok.

Re: Progress Bar: continual spin

Posted: Mon Dec 19, 2011 7:00 pm
by slylabs13
sturgis wrote:If you zip it first it should attach ok.
I did. It was rejected for being too large.

Re: Progress Bar: continual spin

Posted: Mon Dec 19, 2011 7:03 pm
by sturgis
Ah k. Knew that! *hides*

Re: Progress Bar: continual spin

Posted: Mon Dec 19, 2011 7:05 pm
by mwieder
It's also basic spammer rejection - you have to have built up a certain credibility here by x number of posts before you can attach files.