Good-bye Window Command [message #73647] |
Mon, 15 November 2010 10:02 |
David Fanning
Messages: 11724 Registered: August 2001
|
Senior Member |
|
|
Folks,
Between paying bills this morning and checking my e-mail
I realized I had forgotten one very important addition to
my new suite of graphics programs: a wrapper for the
WINDOW command.
A new program, FSC_DISPLAY, can be used to open a graphics
window in IDL graphics programs that are meant to work
identically on the display and in PostScript. Normally,
in such programs you have to "protect" the Window command:
IF (!D.Flags AND 256) NE 0 THEN Window, 3, XSIZE=400, YSIZE=400
Now, you can just call FSC_DISPLAY:
FSC_Display, 3, 400, 400, Color='gray'
Windows are automatically protected.
You can find the program here:
http://www.dfanning.com/programs/fsc_display.pro
Cheers,
David
--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Sepore ma de ni thui. ("Perhaps thou speakest truth.")
|
|
|