1 Reply Latest reply on Apr 3, 2008 2:43 AM by Newsgroup_User

    Application on PC with 2 monitors

    Level 7

      If some user have a PC with 2 monitors attached, how can I define, on which
      monitor my application will is currently shown?

      It is opened on primary display but the user can move it later to another

      I need to change resolution on that screen, where application windows is
      positioned at the moment.

      Any help will be appreciated


        • 1. Re: Application on PC with 2 monitors
          Level 7
          Check out 'the desktopRectList'

          It will give you a list of the rect (screen res) of each monitor. Using
          that, you can tell which size monitors are in what location. Mine looks
          like this for example:

          put the desktopRectList
          -- [rect(0,0,1680,1050),rect(-1280,0,0,1024)]

          Which tells you that I have 2 monitors (there are 2 entries). And the
          1st one is the primary screen with a resolution of 1680 x 1050. The 2nd
          screen is to the left of the primary (negative rect[1] value), and it
          has a resolution of 1280x1024.

          If you look at BuddyAPI (www.mods.com.au/budapi), it has a number of
          functions for dealing with multi monitors and screen resolution as well.