Page 1 of 1

Toggle a Button & Progress a Bar Demo

Posted: Tue Oct 26, 2010 9:11 pm
by Zephitron
Attached is a little stack that does a few things: demonstrates a way to toggle a button, use the button to toggle a process, and shows two ways to run a progress bar. It also has a flashing "Progress" Label field that uses the "ticks" function to calculate the intervals of the blinking.

I'm new to LiveCode (though used HyperCard many years ago), so I did this stack in order to learn and remind myself how to do a toggling button, and also to play with a progress bar. It playfully says "Download Your Engrams Into Computer".

The first way uses a repeat loop, which as a consequence prevents other interactions or processes in the stack from going on. The second method uses a "send "XXX" to me in Y [time]" technique to create the loop, and thus allows other processes to happen. It also toggles the color of the button.

If you know a better tor alternative technique to do any of these methods, please share!

By the way, I believe making one's coding learning a shared process greatly accelerates learning.

Re: Toggle a Button & Progress a Bar Demo

Posted: Tue Oct 26, 2010 9:37 pm
by bn
zephitron,
I believe making one's coding learning a shared process greatly accelerates learning
I do believe in that also.

did you notice my post to your inquiry
http://forums.runrev.com/phpBB2/viewtop ... =22&t=5942
you were asking for an colision detection stack.
and my post to your bug report
http://forums.runrev.com/phpBB2/viewtop ... =10&t=5908

if you did read them, would you mind a short "read what you said" or some such. Without feedback a dialogue is, well not really a dia-logue.
regards
Bernd

Re: Toggle a Button & Progress a Bar Demo

Posted: Tue Oct 26, 2010 9:47 pm
by Zephitron
Yes, Bernd. Was working up to it. I was *wondering* if I should say "I'll look at this, thanks", and you've answered my wondering!

Sorry about that. Takes me a while to juggle – doing lots of things in parallel (including looking for work and studying), so I can be a bit slow in digesting what gets posted. But I don't forget.

I'll give quicker, even if short, feedback now.

Thanks.

Eric

Re: Toggle a Button & Progress a Bar Demo

Posted: Tue Oct 26, 2010 9:49 pm
by Zephitron
Oh, and I often forget, in my haste, to click the "Notify me when a reply is posted" button, so I'll try and remember that too!
- E

Re: Toggle a Button & Progress a Bar Demo

Posted: Wed Oct 27, 2010 12:10 am
by bn
Eric,

that's ok. I just feel a little "oneway" without a response.
Best would if I would get to know whether the stuff I wrote was helpful at all.

Kind regards
Bernd

Re: Toggle a Button & Progress a Bar Demo

Posted: Wed Oct 27, 2010 2:13 am
by Zephitron
Very helpful indeed!

Thanks!!
Eric