Announcement

Collapse
No announcement yet.

Which monitor?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • José Roca
    replied
    See this thread: https://forum.powerbasic.com/forum/u...6-two-monitors

    and also read post #18 in that thread: AfxForceVisibleDisplay

    Leave a comment:


  • Stuart McLachlan
    replied
    Originally posted by Owen English View Post
    Thanks Rod. So just to clarify, are both screens seen as one big screen when it comes to reading the current screen co-ordinates? If so then it'll be easy.
    Essentially, yes. It all forms one big Virtual screen
    Note that the x/y origins of that screen may be negative (if the right hand screen is defined as primary) and not all of the virtual screen may be visible (it depends on the monitors relative positions)

    Also note that once you go this way, you need to check that the initial position is visible to allow for the situation where monitors change number/position (think of a laptop which may have a second monitor attached when deskbound but can also be used away from base without an external monitor)

    https://docs.microsoft.com/en-us/win...tors-reference

    Leave a comment:


  • Owen English
    replied
    Originally posted by Rod Macia View Post
    Save your app screen coordinates when exit
    use those coordinates next time the app is executed.
    Thanks Rod. So just to clarify, are both screens seen as one big screen when it comes to reading the current screen co-ordinates? If so then it'll be easy.

    Leave a comment:


  • Stuart McLachlan
    replied
    Don't forget to quote the client a price to customise your application so that it can open on secondary monitors for them.

    Leave a comment:


  • Eric Pearson
    replied
    Or tell the client to make the other monitor his system's primary monitor. Apps open there by default, unless they remember their location.

    P.S. Apps that do that should check to make sure the screen location is valid, and default to the primary monitor if the secondary has been disconnected. Otherwise they disappear.

    Leave a comment:


  • Rod Macia
    replied
    Save your app screen coordinates when exit
    use those coordinates next time the app is executed.

    this was discuses recently (post#2 do saving and reading and #18 in case one monitor is removed)
    https://forum.powerbasic.com/forum/u...6-two-monitors

    Leave a comment:


  • Owen English
    started a topic Which monitor?

    Which monitor?

    A client has called asking for help with this. Our app which makes no reference to monitor IDs has been running happily for many years on W/W10 PCs with one monitor. The client has now added a second monitor (at this stage I don't know with what hardware or how) and reports that our application opens on the 'wrong' screen and that even after being dragged to the 'right' screen, it reverts back to the 'wrong' screen whenever SHELLing to another .exe. Clearly I need to tell every one of our .exe's which monitor to display on - how?
Working...
X