PureBasic Forum
https://www.purebasic.fr/english/

Windows Display Settings and the desktop library
https://www.purebasic.fr/english/viewtopic.php?f=5&t=72016
Page 1 of 1

Author:  ozzie [ Mon Dec 31, 2018 11:51 am ]
Post subject:  Windows Display Settings and the desktop library

Another question for the Windows' gurus. I have a laptop with two secondary screens and in my Windows Display Settings I have the screens arranged left to right to match their physical position, ie displays 1, 2, 3 from left to right. However, the PB desktop library seems to number the screens in the order they are connected. For example, if I disconnect both secondary screens, then connect the 'third' (right-most) screen, then connect the 'second' (middle) screen, then run my PB program, the laptop screen is #Desktop 0 (correct), the middle screen is #Desktop 2 (incorrect), and the right screen is #Desktop 1 (incorrect). The Windows Display Settings, however, still show the correct display numbers of 1, 2 and 3.

Is there a way I can get the sizes and positions of the Windows Displays so I can map the PB Desktops to the Windows Display numbers? I'm asking this because a few of my users have reported the problem of video display screens being swapped.

Author:  RSBasic [ Thu Apr 18, 2019 10:25 am ]
Post subject:  Re: Windows Display Settings and the desktop library

I can't test it, but are the following codes better?
https://www.rsbasic.de/aktualisierung/w ... eln%202.pb
https://www.rsbasic.de/aktualisierung/w ... mitteln.pb

Author:  ozzie [ Fri Apr 19, 2019 12:39 am ]
Post subject:  Re: Windows Display Settings and the desktop library

Thanks, RSBasic. I'll run some tests next week.

Page 1 of 1 All times are UTC + 1 hour
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/