[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: How to pick a window?
- Subject: Re: How to pick a window?
- From: Reimar Bauer <r.bauer(at)fz-juelich.de>
- Date: Sun, 28 Jan 2001 19:50:24 +0100
- Newsgroups: comp.lang.idl-pvwave
- Organization: Forschungszentrum Juelich GmbH
- References: <firstname.lastname@example.org>
- Xref: news.doit.wisc.edu comp.lang.idl-pvwave:23260
> I am trying to find out which idl window I clicked on (ie, selected) if
> I have a number of them on the screen. I want to feed that back into a
> routine that then goes and does something depending on which window I
> click on. I am using the "old fashioned" windows created with 'window',
> rather than these new fangled "widget windows". Is here a solution or do
> I have to use widgets? I am using idl 5.4 in a unix environment. Maybe I
> can get the window manager to say something to idl?
No Iam sorry I have no solution to this but I will show you some trouble
you got if you don't save some system variables
oplot on window 1 gives no blue line.
IDL stores always only for the last plot in !x, !y and so on
the parameters which are necessary needed to add some plots later.
We have two useful routines in our library to get out of this trouble.
; saves the settings of the !p, !x, !y, !z system
; variables in a structure
; restores the settings of the !p, !x, !y, !z variables
; from a structure previously saved with savesyvar()
For further routines and licensing please look at
Institut fuer Stratosphaerische Chemie (ICG-1)
a IDL library at ForschungsZentrum Jülich