Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2010-12

IDE window positions

3 messages · 2 people · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Hans-Peter Diettrich

In my multi-monitor environment (Win7) the second (upper) monitor has negative Y coordinates. This seems to prevent IDE windows restored to that monitor. I could not figure out whether the negative coordinates are supplied by the OS/widgetset, or are calculated by the LCL.

DoDi

Reply by email

Sven Barth
to Hans-Peter Diettrich
Hans-Peter Diettrich wrote
In my multi-monitor environment (Win7) the second (upper) monitor has negative Y coordinates. This seems to prevent IDE windows restored to that monitor. I could not figure out whether the negative coordinates are supplied by the OS/widgetset, or are calculated by the LCL.

The negative values should be returned by Windows, as the main monitor (the one with the taskbar on it) always has the upper left coordinates (0, 0) there.

I can't help you with your issue though...

Regards,
Sven

Reply by email

Hans-Peter Diettrich
to Sven Barth
Show quoted text 9 lines
On 18.12.2010 12:23, Hans-Peter Diettrich wrote: > In my multi-monitor environment (Win7) the second (upper) monitor has > negative Y coordinates. This seems to prevent IDE windows restored to > that monitor. I could not figure out whether the negative coordinates > are supplied by the OS/widgetset, or are calculated by the LCL. The negative values should be returned by Windows, as the main monitor (the one with the taskbar on it) always has the upper left coordinates (0, 0) there.

Right. This means that TScreen should not only have a screen width and height, but also an origin - best a complete BoundsRect.

DoDi

Reply by email