Recent

Author Topic: [SOLVED] How to obtain desktop width in multi-monitor setup?  (Read 14742 times)

rvk

  • Hero Member
  • *****
  • Posts: 7063
Re: How to obtain desktop width in multi-monitor setup?
« Reply #15 on: December 21, 2016, 02:15:24 pm »
Maybe the problem is that my primary monitor is on the right.
I just tried that too and works fine for me on Windows:

When making the right monitor (#1) the primary-monitor:
Pressing button 1 moves the form to the primary monitor (on the right) which is monitor[0].
Pressing button 2 moves the form to the secondary monitor (on the left) which is monitor[1].

I even tried swapping places in the settings (left to right and right to left) and it still worked.

(Let's see what you experience later on)

jwdietrich

  • Hero Member
  • *****
  • Posts: 1278
    • formatio reticularis
SOLVED: How to obtain desktop width in multi-monitor setup?
« Reply #16 on: December 21, 2016, 08:29:39 pm »
Maybe the problem is that my primary monitor is on the right.
I just tried that too and works fine for me on Windows:

When making the right monitor (#1) the primary-monitor:
Pressing button 1 moves the form to the primary monitor (on the right) which is monitor[0].
Pressing button 2 moves the form to the secondary monitor (on the left) which is monitor[1].

I even tried swapping places in the settings (left to right and right to left) and it still worked.

(Let's see what you experience later on)


I tested your simple example programs, and it works well, even on Mac OS X. There must be a problem in my own code, which is in a very large application with multiple forms. It is now my own job to find the reason.

Sorry for bothering you with these questions. After all, this discussion lead to the discovery of a bug in the Carbon widget set, which may be an element of a small compensation.

Thanks again.
function GetRandomNumber: integer; // xkcd.com
begin
  GetRandomNumber := 4; // chosen by fair dice roll. Guaranteed to be random.
end;

http://www.formatio-reticularis.de

Lazarus 4.2.0 | FPC 3.2.2 | PPC, Intel, ARM | macOS, Windows, Linux

 

TinyPortal © 2005-2018