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

Home » Public Forums » archive » Re: Focus
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Re: Focus [message #18130] Fri, 03 December 1999 00:00 Go to next message
Michael Asten is currently offline  Michael Asten
Messages: 53
Registered: March 1999
Member
Yura Beletsky wrote:

> Hello All,
> I wrote a widget program, where all calculations are carrying out by an
> external Fortran-code and
> then results are plotting by the IDL code. For the starting the external
> code I use SPAWN procedure.
> When I start the program, focus switches to Fortran-code and then, when
> calculations are finished, focus do not return to the IDL widget program. I
> see only IDLDE environment and in order to see the
> results I have to switch to widget program manually. How to solve this
> problem ? Is it possible to
> return focus to the widget after finishing the external program ?
> I'm running IDL 5.2.1 on P-233, 32 MB RAM, Windows'98.
>
> Thank you in advance,
> Yuri.

Strange. I do exactly the same and it works ok. The fortran program writes
progress notes into a DOS window, then after completion of execution of the
fortran, the dos window disappears and control passes back into the idl widget
program. Is it possible your fortran program is not ending correctly (eg
pausing rather than exiting?).

I use idl5.2 or 5.3 beta, on win95, spawning to an executable written by a
Lahey F77 or F90 compiler.

Regards,
Michael Asten
Re: Focus [message #18250 is a reply to message #18130] Wed, 08 December 1999 00:00 Go to previous message
Mark Hadfield is currently offline  Mark Hadfield
Messages: 783
Registered: May 1995
Senior Member
> Yura Beletsky wrote:
>
>> I wrote a widget program, where all calculations are carrying out by an
>> external Fortran-code and
>> then results are plotting by the IDL code. For the starting the
external
>> code I use SPAWN procedure.
>> When I start the program, focus switches to Fortran-code and then, when
>> calculations are finished, focus do not return to the IDL widget
program. I
>> see only IDLDE environment and in order to see the
>> results I have to switch to widget program manually. How to solve this
>> problem ? Is it possible to
>> return focus to the widget after finishing the external program ?

When SPAWN returns, call

widget_control, tlb, /SHOW

where tlb is the id of the widget program's top-level base.

As to why focus does not return to where you expect it, I have found focus
in IDLDE pretty quirky. It's never where you want it to be!

---
Mark Hadfield
m.hadfield@niwa.cri.nz http://katipo.niwa.cri.nz/~hadfield/
National Institute for Water and Atmospheric Research
PO Box 14-901, Wellington, New Zealand
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Troubleshooting - Error Messages.
Next Topic: Usage of System Variables

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

Current Time: Thu Oct 09 16:06:43 PDT 2025

Total time taken to generate the page: 0.72312 seconds