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

Home » Public Forums » archive » Re: Getting info on the whole screen in IDL
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: Getting info on the whole screen in IDL [message #3573] Tue, 21 February 1995 01:45 Go to previous message
sjt is currently offline  sjt
Messages: 72
Registered: November 1993
Member
Wayne Landsman (301)-286-3625 (landsman@sorbet.gsfc.nasa.gov) wrote:
: In article <3i2euu$knu@adam.cc.sunysb.edu>, Chris Jacobsen
: <jacobsen@xray1.physics.sunysb.edu> writes...

: >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

: The GET_SCREEN_SIZE keyword to the DEVICE command under X windows will give
: you the size of the entire screen in pixels. I think you still have to link
: to the C program to get the size in mm.

Not if the screen is properly set up. The GET_SCREEN_SIZE gives the screen
size and the !D.[xy]_px_cm give the pixels/cm. From which it is trivial
to extract the size of the screen in cm.


: --Wayne Landsman landsman@stars.gsfc.nasa.gov

--
--
+------------------------+---------------------------------- --+---------+
| James Tappin, | School of Physics & Space Research | O__ |
| sjt@star.sr.bham.ac.uk | University of Birmingham | -- \/` |
| Ph: 021-414-6462. Fax: 021-414-3722 | |
+----------------------------------------------------------- --+---------+
[Message index]
 
Read Message
Read Message
Read Message
Previous Topic: IDL Windows,Buttons etc on Mac
Next Topic: Re: STRTRIM needs improvement

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

Current Time: Sat Oct 11 20:48:22 PDT 2025

Total time taken to generate the page: 0.31948 seconds