Returns the resolution of the largest unobstructed graphics window that can be
created on this particular graphics device. Works properly for Windows and UNIX
computers, excluding Macintosh computers. There is no known way to find the resolution
of the largest unobstructed graphics window on a Macintosh computer, so a fudge factor
of 22 pixels is used to account for the Macintosh "dock".
monitor_resolution: out, optional, type=long
Set this keyword to a named variable to return the resolution of the
primary display monitor.
To create a window of maximum size::
maxsize = MaxWindowSize()
Window, XSize=maxsize, YSize=maxsize, /Free
FANNING SOFTWARE CONSULTING::
David W. Fanning
1645 Sheely Drive
Fort Collins, CO 80526 USA
Coyote's Guide to IDL Programming: http://www.idlcoyote.com
Written, 26 October 2010. DWF.
Misunderstood Macintosh result. Now Mac treated like UNIX. 27 Oct 2010. DWF.
No known method for Macintosh computers. Resorting to a fudge factor
of 22 pixels to account for the Macintosh dock. 27 Oct 2010. DWF.
Code is total reversed for UNIX and Macintosh computers! Fixed. 16 Dec 2011. DWF.
Modified to only use IDLsysMonitorInfo for IDL 6.3 and higher. 23 Feb 2012. DWF.
Copyright (c) 2010, Fanning Software Consulting, Inc.