Toggle a Button & Progress a Bar Demo

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
Zephitron
Posts: 21
Joined: Sun Oct 10, 2010 6:04 am

Toggle a Button & Progress a Bar Demo

Post by Zephitron » 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.
Attachments
toggle.livecode.zip
(2.55 KiB) Downloaded 361 times

bn
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 4171
Joined: Sun Jan 07, 2007 9:12 pm

Re: Toggle a Button & Progress a Bar Demo

Post by bn » Tue Oct 26, 2010 9:37 pm

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

Zephitron
Posts: 21
Joined: Sun Oct 10, 2010 6:04 am

Re: Toggle a Button & Progress a Bar Demo

Post by Zephitron » Tue Oct 26, 2010 9:47 pm

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

Zephitron
Posts: 21
Joined: Sun Oct 10, 2010 6:04 am

Re: Toggle a Button & Progress a Bar Demo

Post by Zephitron » Tue Oct 26, 2010 9:49 pm

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

bn
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 4171
Joined: Sun Jan 07, 2007 9:12 pm

Re: Toggle a Button & Progress a Bar Demo

Post by bn » Wed Oct 27, 2010 12:10 am

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

Zephitron
Posts: 21
Joined: Sun Oct 10, 2010 6:04 am

Re: Toggle a Button & Progress a Bar Demo

Post by Zephitron » Wed Oct 27, 2010 2:13 am

Very helpful indeed!

Thanks!!
Eric

Post Reply