excellent!

it was the "with messages" i was missing.

works a dream now..

thanks BriN (and Jim)

stephen



Brian Yennie wrote:

Stephen,

Try this -

In your repeat loop, add the line:
"wait for 1 milliseconds with messages"
This will allow the user to click the cancel button.

Now.. in the cancel button script set a global variable to some predetermined value (say, "cancel").

Finally, back in the repeat loop - check for the special value in the global variable. If it's set, the user must have hit the cancel button.

HTH,
Brian

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 [EMAIL PROTECTED]
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: [EMAIL PROTECTED]
Submit and view your cases online.
Details at http://www.sun.co.nz/service/osc
_____________________________________________________________________


_______________________________________________
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution



_______________________________________________
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution

.


_______________________________________________
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution

Reply via email to