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

Home » Public Forums » archive » the "real" screen size
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: the "real" screen size [message #73113 is a reply to message #73042] Tue, 26 October 2010 13:39 Go to previous messageGo to previous message
Michael Galloy is currently offline  Michael Galloy
Messages: 1114
Registered: April 2006
Senior Member
On 10/26/10 2:03 PM, David Fanning wrote:
> Mike Galloy writes:
>
>> If you want to create a maximally sized graphics window so that the
>> above example code works, then on Mac I think it has to use the UNIX
>> solution.
>
> Well, this is *extremely* confusing, which is why I'm trying
> to write it down. So, what do you think the Mac is reporting,
> then, when you do Get_Screen_Size()? You think this is the
> window *without* a title bar, but not taking into account the
> task bar, is that right?

It's the window without the menubar (the top one that is always there on
Mac OS X, sort of like the Windows taskbar that is always at the
bottom), but not accounting for the menubar on individual X windows.
It's just the "usable space" for the monitor. If you could create a
graphics window without a menubar, you could use all that space.

My screen resolution is 1680 x 1050:

IDL> print, get_screen_size()
1680 1028

> I'm I correct that:
>
> Device, Get_Screen_Size=theSize
>
> On a Mac, actually gives the screen or monitor size?

This, as well as using IDLsysMonitorInfo::getRectangles(), returns the
same thing:

IDL> Device, Get_Screen_Size=theSize
IDL> print, thesize
1680 1028

>> Does this work on Windows? IDLsysMonitor::getRectangles with
>> EXCLUDE_TASKBAR excludes the windows menubar too?
>
> It would appear so, yes.
>
> Thanks for your help with this. Not having a Mac, and
> not knowing all these machine-specific nuances, is what
> makes writing machine independent code so very, very
> difficult!

Mike
--
www.michaelgalloy.com
Research Mathematician
Tech-X Corporation
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: POLY_2D and anti-aliasing
Next Topic: Re: Z-Graphics Buffer Resolution

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

Current Time: Tue Oct 14 12:04:46 PDT 2025

Total time taken to generate the page: 1.20013 seconds