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

Home » Public Forums » archive » Re: CG resizable window won't resize during read
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: CG resizable window won't resize during read [message #75547] Thu, 17 March 2011 12:51
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Jeremy Bailin writes:

> I have an odd probably insurmountable problem with CG resizable windows. If I have lots of similar plots looping through different objects, I like to do something like this on the command line:
>
> for i=0l,nobj-1 do begin
> cgplot, blahblahblahblah, /window
> cgplot, blahlblahblah, /overplot, /addcmd
> ...etc...
>
> str='' & read, str ; pause for me to look at it and hit enter when I'm done
> end
>
> The problem is that, while I'm looking at one of these plots, while it's waiting at the read line, I want to resize it. And I can resize the window itself, but the plot doesn't resize. And it doesn't resize after I hit enter - just puts up the new plot. But once I finally get out of the loop, it will finally remember what it's supposed to do and resize the final plot.
>
> 7.0.4 Mac Leopard
>
> Any suggestions?

Don't do that. :-)

This is just how IDL works. All widget programs in IDL
work like this. They are all working off the same
"command interpreter loop" and if you interrupt the loop by
pausing or stopping program execution, you can't execute the
next "loop" command.

Here is an article that describes what is happening
in more detail and offers a couple of suggestions:

http://www.idlcoyote.com/misc_tips/breakptrun.html

Cheers,

David


--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.idlcoyote.com/
Sepore ma de ni thui. ("Perhaps thou speakest truth.")
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: CG resizable window won't resize during read
Next Topic: Re: How to specify which exact version of a subroutine to use....

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

Current Time: Wed Oct 08 20:03:59 PDT 2025

Total time taken to generate the page: 0.00701 seconds