Re: the "real" screen size [message #73029 is a reply to message #73028] |
Mon, 25 October 2010 06:32   |
David Fanning
Messages: 11724 Registered: August 2001
|
Senior Member |
|
|
wlandsman writes:
>
> On Oct 25, 4:56 am, Carsten Lechte <c...@toppoint.de> wrote:
>
>>
>> At least on my linux box, if you do that, you can then examine the
>> size fields in the !D system variable to get the true size of your
>> window, which you can assume to be the maximum possible size and use
>> accordingly in your subsequent drawing operations.
>
> That works on both my Linux box and Mac-- thanks! (I could swear
> that it didn't used to work, but I won't worry about that now.) --
Ah, is this what Carsten means:
IDL> device, get_screen_size=s
IDL> print,s
1280 1024
IDL> window, xsize=1280, ysize=1024
IDL> print, !d.x_size, !d.y_size
1280 1024
If so, then you only need fudge factors for Windows. ;-)
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.")
|
|
|