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

Home » Public Forums » archive » Re: Is that window open??
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: Is that window open?? [message #8562] Thu, 03 April 1997 00:00 Go to previous message
David Foster is currently offline  David Foster
Messages: 341
Registered: January 1996
Senior Member
Brian Jackel wrote:
>
> In article <33427754.41C6@irc.chmcc.org> Phil Williams <williams@irc.chmcc.org> writes:
>
>> How would I check to see if a window ID is still open in a widget
>> program?
>
> For the "standard" set of windows, DEVICE,WINDOW_STATE=window_state
> works, but this seems to apply only to windows 0 to 30, and the Draw_widget
> comes out of a pool from 31 or more. I ran across this when trying to make
> a window manager which would remember plotting states in different windows,
> but never found a good way to handle widget windows.

I don't think this is correct, at least on my system which is
a Sparc 2 running IDL 4.0.1 . Check out the following session:

IDL> device, window_state=win
IDL> help,win
WIN BYTE = Array[36]
IDL> for i = 0, 50 do window, xsize=10, ysize=10, /free
IDL> device, window_state=win
IDL> help,win
WIN BYTE = Array[83]
IDL>

Now, win(0:31)=0, win(32:82)=1

I've used WINDOW_STATE to manage windows in draw-widgets within
a "show-image" application where we have over 100 windows up at
one time.

Dave
--

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~
David S. Foster Univ. of California, San Diego
Programmer/Analyst Brain Image Analysis Laboratory
foster@bial1.ucsd.edu Department of Psychiatry
(619) 622-5892 8950 Via La Jolla Drive, Suite 2200
La Jolla, CA 92037
[ UCSD Mail Code 0949 ]
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: file paths
Next Topic: Re: ANY LINUX IDL USERS?

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

Current Time: Wed Oct 08 19:56:32 PDT 2025

Total time taken to generate the page: 0.00494 seconds