How to use a button to STOP a handler?

Igor Couto igor at pixelmedia.com.au
Fri Jul 18 07:35:01 EDT 2003


Hi all! - again...

I have a stack with a script that sometimes takes a long time to 
complete. I would like to allow the user to click on a button to stop 
the handler, if so desired (the handler is simply drawing geometrical 
lines on the card). The problem is that while the script is running, I 
don't seem to be able to have access to any other control in the 
interface - not even Rev's menus!

I tried starting the drawing handler from another stack, using a 'send 
drawRoutine in 1 sec'  command form, thinking that this construct might 
place the running script in a separate thread, thereby freeing the 
interface, but it make absolutely no difference...

How can I achieve this? - is there a way?

Many thanks in advance for any suggestions,

--
Igor de Oliveira Couto
----------------------------------
igor at pixelmedia.com.au
----------------------------------




More information about the use-livecode mailing list