comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Re: Running processes in parallel
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: Running processes in parallel [message #49242] Wed, 12 July 2006 13:44 Go to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
WorkerAnt writes:

> Currently, there is a for loop in my program that takes anywhere from a
> couple of seconds to a couple of minutes. (The procedure runs a step by
> step animation using the wait function). It's called from an event
> handler whenever a button in the widget is pushed. I want to be able to
> stop anytime in the middle of the animation when another button is
> pressed. (As opposed to the ctrl break method).
> However, the event handler is unable to process the stop button getting
> pushed until the for loop procedure is complete, thus defeating the
> purpose. Is there any way to run two procedures in parallel? Or a time
> independent way to have one take priority over another?
> Barring these two possibilities working, is there any other way of
> having the animation stop?

You can see an example of using timer events to run
a widget animation in this example program:

http://www.dfanning.com/programs/xmovie.pro

Cheers,

David

--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
[Message index]
 
Read Message
Read Message
Read Message
Previous Topic: Rendering order
Next Topic: Re: IDLWAVE Mac OS X

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Wed Oct 08 19:13:31 PDT 2025

Total time taken to generate the page: 0.00369 seconds