Toggle a Button & Progress a Bar Demo
Posted: Tue Oct 26, 2010 9:11 pm
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.