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

Home » Public Forums » archive » Re: which plot windows are opened?
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: which plot windows are opened? [message #42256] Sat, 22 January 2005 18:01
war is currently offline  war
Messages: 21
Registered: December 2003
Junior Member
> testIndex = 4
> Device, Window_State=windowVector
> IF windowVector[testIndex] THEN Print, 'Window is open'
>
> I wrap the WINDOW_STATE call up into a WindowAvailable function.
> I pass it a window index number I'm interested in, it tells
> me if it is open (1) or not (0).

Thanks again Dave.

Andry
Re: which plot windows are opened? [message #42257 is a reply to message #42256] Sat, 22 January 2005 15:42 Go to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Andry William writes:

> Some time ago, I thought I saw somewhere (manuals or this group) how I
> can now which plot windows are opened. I imagine there should be some
> array somewhere within IDL which contains a list of all the opened plot
> windows but I don't seem to find it.
>
> Could somebody help?

testIndex = 4
Device, Window_State=windowVector
IF windowVector[testIndex] THEN Print, 'Window is open'

I wrap the WINDOW_STATE call up into a WindowAvailable function.
I pass it a window index number I'm interested in, it tells
me if it is open (1) or not (0).

Cheers,

David

--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: which plot windows are opened?
Next Topic: Re: Help with SPAWN

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

Current Time: Wed Oct 08 19:25:29 PDT 2025

Total time taken to generate the page: 0.00993 seconds