>  Docs Center  >  Libraries  >  Coyote  >  MAXWINDOWSIZE
Libraries

MAXWINDOWSIZE

MAXWINDOWSIZE

Description


    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".

Categories


    Utility
   

Params


    none:
     

Keywords


    monitor_resolution: out, optional, type=long
        Set this keyword to a named variable to return the resolution of the
        primary display monitor.

Examples


    To create a window of maximum size::
      maxsize = MaxWindowSize()
      Window, XSize=maxsize[0], YSize=maxsize[1], /Free

Author


      FANNING SOFTWARE CONSULTING::
          David W. Fanning
          1645 Sheely Drive
          Fort Collins, CO 80526 USA
          Phone: 970-221-0438
          E-mail: david@idlcoyote.com
          Coyote's Guide to IDL Programming: http://www.idlcoyote.com

History


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


    Copyright (c) 2010, Fanning Software Consulting, Inc.



© 2024 NV5 Geospatial Solutions, Inc. |  Legal
   Contact Us