[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Graphic Window



Bernard Puc (puc@gsfc.nasa.gov) writes:

> Is there a way to verify that the graphics window associated with a
> given ID number is still open and valid?

On Windows and UNIX machines you can use the WINDOW_STATE keyword
to the DEVICE command. It will return an array containing one 
element for each possible window. Array element j contains a 1 
if window j is open, otherwise it contains a 0.

   IDL> Device, Window_State=theseWindows
   IDL>Print, 'Open Windows: ', Where(theseWindows EQ 1)

Cheers,

David

-- 
David Fanning, Ph.D.
Fanning Software Consulting
E-Mail: davidf@dfanning.com
Phone: 970-221-0438
Coyote's Guide to IDL Programming: http://www.dfanning.com/