the ScreenRect

Richard Gaskin ambassador at fourthworld.com
Mon Jun 6 22:08:47 EDT 2005


Troy Rollins wrote:
> Having been away for a while (again) I was kind of hoping that one of 
> the last couple of updates would have allowed us to get reporting of 
> multiple monitors in the ScreenRect property. Still doesn't huh? An 
> awful lot of people have more than one monitor these days. I have a 
> project which specifically needs to support 2 monitors... hopefully I am 
> missing something obvious. If not, does anyone have a viable workaround?

Interested developers can cast their vote for Ben Rubenstein's excellent 
suggestion, "the detailed screenRect"

<http://support.runrev.com/bugdatabase/show_bug.cgi?id=193>

 From his proposal there:

    The screenrect returns four integers, corresponding to the
    dimensions of the main screen, at startup.

    This means apps made with Rev cannot adequately deal with
    window placement on either Mac or Windows machines that
    have multiple monitors.  If we try to remember our user's
    palette placement, for example, we may either be forced
    to move them (because the coordinates appear to be outside
    the main monitor) - or choose to guess that the previous
    coordinates are still valid, and risk placing them in
    invisible space.

    It's not the worst issue in the world - but not that much
    effort to fix either.

    My suggestion is that "the screenrect" behave as now for
    compatibility; and a new variant "the detailed screenrect"
    be introduced which returns one or more rectangles, one per
    line, being the coordinates of all current monitors, first
    line corresponding to the main monitor.

    While we're at it, my suggestion is that "the detailed
    screenrect" should also calculate its answer on the fly,
    rather than relying on the state of the monitor at startup.
    I believe this too is now an issue on Windows, as it
    certainly is on Mac.


--
  Richard Gaskin
  Fourth World Media Corporation
  __________________________________________________
  Rev tools and more: http://www.fourthworld.com/rev


More information about the use-livecode mailing list