which plot windows are opened?

  • Follow


Dear all,

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?

Thanks in advance.

Andry
0
Reply andry_william (34) 1/22/2005 11:21:32 PM

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/
0
Reply davidf1 (1521) 1/22/2005 11:42:03 PM


>    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
0
Reply andry_william (34) 1/23/2005 2:01:02 AM

2 Replies
36 Views

(page loaded in 0.07 seconds)


Reply: