Getting info on the whole screen in IDL [message #3595] |
Fri, 17 February 1995 07:22 |
Chris Jacobsen
Messages: 10 Registered: December 1994
|
Junior Member |
|
|
The IDL parameters !D.X_SIZE and so forth tell you information
about the active display window (at least as far as I can tell).
I wanted to be able to find about the whole screen so as to
decide how big to make windows and fonts and so on.
I have written a routine
IDL> xpixels,xpix,ypix,xmm,ymm
IDL> print,xpix,ypix,xmm,ymm
1024 768 283.000 212.000
I have compiled versions for AIX (probably most
Unix) and for Windows, and it should be close to working
on VAX/VMS.
I'd be delighted if anyone made it work on other systems.
The files:
xpixels.c, xpixels.pro (ASCII)
xpixels.dll (Windows binary)
xpixels.so (AIX binary)
can be had from:
anonymous ftp to xray1.physics.sunysb.edu, cd pub/idl
or URL
file://xray1.physics.sunysb.edu/pub/idl/
|
|
|