Toggle a Button & Progress a Bar Demo
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller
Toggle a Button & Progress a Bar Demo
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.
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.
- Attachments
-
- toggle.livecode.zip
- (2.55 KiB) Downloaded 361 times
Re: Toggle a Button & Progress a Bar Demo
zephitron,
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
I do believe in that also.I believe making one's coding learning a shared process greatly accelerates learning
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
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
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
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
- E
Re: Toggle a Button & Progress a Bar Demo
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
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
Very helpful indeed!
Thanks!!
Eric
Thanks!!
Eric