Le 12 janv. 2011 à 14:52, Richard Gaskin a écrit :

> So I needed both a way to indicate progress, and a way to cancel the task, 
> just as you do.

Hi Richard,

I had the same problem with one of my external written in C.
and that's exactly what I've done. ( different context, but same solution )

The C code is using 100% of the CPU for quite a while, and with a user's option,
there is a way to update a progress bar or whatever, and this works like a 
charm.

on Progress x
 set the thumbposition of ... to x
 wait 1 milliseconds with message
end Progress

on mouseUp
 AbortProcess
end mouseUp

The Progress is called from the external,
and AbortProcess is send to the external.

Regards,
Thierry


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

Reply via email to