progress bar
Klaus Major
kmajor at metascape.org
Mon Apr 8 08:46:00 EDT 2002
Bonjour mon ami :-)
ca va bien ?
> Hi,
> I'm fighting with Rev to make a window with a progress bar appearing in
> the front of a stack during a loop.
please stop fighting :-)
> i can't.
Yet !
> For hypercard, there are many different XCMDs doing the job.
> Can someone help me explaining how to proceed ?
>
> I start with a genearal script
>
> put the number of cds of this stack into tCards
> repeat with x = 1 to tCards
> -- the script calling the new stack with the progression bar
> -- my script : go to cd x ...
> end repeat
> ...
> ...
>
>
>
> thanks.
> -- Greetings.
>
> Yves COPPE
just to be sure: you have stack A where you want to do something on all
cards and
stack B, where a progress-bar should display the progress of these
actions ?
OK, here we go:
on xxx
put the number of cds of this stack into tCards
put the long name of sb "le_progresse" of cd x of stack "B" into
le_prog
## this put something like "scrollbar id 1003 of cd id 1004 of stack
xxx" into the var,
### so you can refer to it with just a single word ;-), makes not
much sense in this
### example, but you get the picture...
set the endvalue of le_prog to tCards
## so you don't have to count before ;-)
palette "B"
##or whatsoever...
repeat with x = 1 to tCards
set cursor to busy
### so you have this nice spinning beach-ball
set the thumbpos of le_prog to x
### set the progressbar
### do your card-stuff here
### if possible, do NOT go to cd x, this will speed up things
heavily :-)
### my script : go to cd x ...
end repeat
close stack "B"
end xxx
Hope this helps.
Regards/Au revoir
Klaus Major
kmajor at metascape.org
More information about the use-livecode
mailing list