Display progress

Ken Ray kray at sonsothunder.com
Sat Dec 14 17:56:01 EST 2002


Make a hidden button (I'll call it "BS") that sits in your progress window
with a script that has the following in it:

on mouseDown
end mouseDown

on mouseUp
end mouseUp

Then, call your progress window which will do this on its openCard:

  insert script of btn "BS" into front

Open your progress bar (as a palette or toplevel stack so it doesn't block
scripts), and then when it is over, in the closeStack handler execute:

  remove script of btn "BS" from front

This should do it...

Ken Ray
Sons of Thunder Software
Email: kray at sonsothunder.com
Web Site: http://www.sonsothunder.com/

----- Original Message -----
From: "Barry Levine" <themacguy at macosx.com>
To: <use-revolution at lists.runrev.com>
Sent: Saturday, December 14, 2002 12:13 PM
Subject: Display progress

> I have an app that has some processing to do when it reaches a certain
> card. I have the handler in the openCard script. This can take anywhere
> from four to eight seconds depending on the speed of the computer. I'd
> like to display a small progess indicator - even something as simple as
> a window that tells the user to be patient for a few more seconds. I
> don't even need to provide a thermometer or a counter.
> I thought about displaying a modal window but the docs say that doing
> so will bring all processing to a halt so that's obviously not the
> answer. I don't want the user to be able to click in the "main" window
> until the app is ready, however. This is probably four lines of code,
> right? Any help would be appreciated.
> Thanks,
> Barry
> _______________________________________________
> use-revolution mailing list
> use-revolution at lists.runrev.com
> http://lists.runrev.com/mailman/listinfo/use-revolution

More information about the Use-livecode mailing list