Re: control IDL process [message #18060] |
Tue, 23 November 1999 00:00 |
Craig Markwardt
Messages: 1869 Registered: November 1996
|
Senior Member |
|
|
"pei zeng" <pei@prism-cs.com> writes:
>
> I would like to control my IDL process(stop,continue) by click on widget
> buttons to perform actions such as 'stop', 'continue' , etc. I know the stop
> procedure would stop the IDL execution, but it turns control to the
> interactive mode, using .cont to resume.
Usually you have turn your thinking around when you design widget
programs. In this case, you will probably have to create a button
widget before you begin your processing, and then periodically poll
that widget for any activity. If you retrieve your own events
directly (instead of using XMANAGER) you can do this.
As David points out, it is currently impossible to directly control an
IDL computing process with just a widget. After all, how can an IDL
program control itself?
Craig
--
------------------------------------------------------------ --------------
Craig B. Markwardt, Ph.D. EMAIL: craigmnet@cow.physics.wisc.edu
Astrophysics, IDL, Finance, Derivatives | Remove "net" for better response
------------------------------------------------------------ --------------
|
|
|
Re: control IDL process [message #18067 is a reply to message #18060] |
Tue, 23 November 1999 00:00  |
davidf
Messages: 2866 Registered: September 1996
|
Senior Member |
|
|
pei zeng (pei@prism-cs.com) writes:
> I would like to control my IDL process(stop,continue) by click on widget
> buttons to perform actions such as 'stop', 'continue' , etc. I know the stop
> procedure would stop the IDL execution, but it turns control to the
> interactive mode, using .cont to resume.
It's not going to happen. At least not the way
you were hoping it would. Tell us more about
what you are trying to do.
Cheers,
David
--
David Fanning, Ph.D.
Fanning Software Consulting
Phone: 970-221-0438 E-Mail: davidf@dfanning.com
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Toll-Free IDL Book Orders: 1-888-461-0155
|
|
|