Re: which plot windows are opened? [message #42256] |
Sat, 22 January 2005 18:01 |
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  |
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/
|
|
|