WSet to negative value [message #74417] |
Mon, 17 January 2011 15:26  |
David Fanning
Messages: 11724 Registered: August 2001
|
Senior Member |
|
|
Folks,
I was just fooling around with a program and realized I can
do a WSet, -1 in this version of IDL (Windows 7.1.2). I am convinced
this was not always possible, since I have written a lot of
code in my day like this:
IF currentWindow GE 0 THEN WSet, currentWindow
I wonder if this is a Windows thing, or an IDL version thing.
If anyone running an older version of IDL could try to set
their graphics window to -1, I would love to hear what version
of IDL you are running and what the results are:
WSet, -1
Thanks,
Cheers,
David
P.S. I am just putting the final touches on a completely
revamped FSC_Window program. It is working great. You can
have multiple resizeable graphics windows, add and delete
commands to/from the windows, replace commands, display multiple
commands in the window, list the commands in the window,
choose which of several windows you want to work with,
send the commands to a PostScript file, make raster image
files out of the window using ImageMagick or not, etc.
I quite honestly have never seen anything like it in IDL. :-)
--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.idlcoyote.com/
Sepore ma de ni thui. ("Perhaps thou speakest truth.")
|
|
|
Re: WSet to negative value [message #74503 is a reply to message #74417] |
Tue, 18 January 2011 12:35  |
David Fanning
Messages: 11724 Registered: August 2001
|
Senior Member |
|
|
Paul van Delst writes:
> Doing
>
> IDL> wset,0
> IDL> wset, -1
> IDL> xyouts,0.5,0.5,'Dada',/normal,charsize=4
>
> put a big "Dada" on window #1 (not 0). Looks like "wset, -1" picks the last window opened/created.
Probably the last time I looked at the WSet
command in the on-line help was back in IDL 3.1.
I should get up-to-date. :-)
Cheers,
David
--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.idlcoyote.com/
Sepore ma de ni thui. ("Perhaps thou speakest truth.")
|
|
|