checking cancel button

Stephen Gorton sgorton at usa.net
Mon May 15 01:24:46 EDT 2006


hi
i can't seem to figure out how to switch context to a button - to see if its
been clicked and to -allow- the mouse to click it..

i have a handler that reads through a file and puts the status into a progress
bar.
I have stuck a button (cancel) on the card 

question is how do i get the repeat statement in the handler to switch context
to the btn?, and check if the button has been depressed.
i have a mouse up statement in the btn but no matter what i do 
the card ignores the button completely until its finished the repeat

what i want to do is something like.....

repeat for each line L in testfile
add 1 to num
if cancel button depressed exit repeat
set thumbpos of sb progbar to num
end repeat

how do i check the state of the mouse button to see if its been depressed??

thanks
stephen



_____________________________________________________________________

If this e-mail requires a reply please send to apen-support at sun.com
in case I am away so my colleagues can respond accordingly.
_____________________________________________________________________
Stephen Gorton
Technical Support Engineer
Sun Services
Sun Microsystems (NZ) Ltd
Level 7, Sun Microsystems House
70 The Terrace, Wellington
NEW ZEALAND
Tel DDI: +64 4 462 0756
Fax    : +64 4 462 0776
e-mail: Stephen.Gorton at Sun.COM
Submit and view your cases online.
Details at http://www.sun.co.nz/service/osc
_____________________________________________________________________





More information about the use-livecode mailing list