On 31/03/2011 15:35, Sven Barth wrote:
Am 31.03.2011 16:15, schrieb Bart:
On 3/31/11, Paul Ishenin<[email protected]> wrote:
TScreen.Monitors[i].WorkareaRect
This seems to work for Win and Linux/GTK2.
This raises yet another question though.
How do I know on which monitor my form is?
(I only have one monitor, so I cannot test this)
What about this:
Screen.MonitorFromWindow(YourForm.Handle);
It returns a TMonitor.
Note that each monitor has it's own set of coordinates, which may be
negative.
eg 2 monitor left to right may be
m1 TopRight x: -1200, y:0
m2 TopRight x: 0, y:0
--
_______________________________________________
Lazarus mailing list
[email protected]
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus