Page 1 of 1

Misplaced text-window if height is big

Posted: 05 Jun 2014 15:06
by PeterH
Funny we talked about screens some days ago - now I think this is a :bug: .

I display some text with
text $out, 800, 900;
The resulting window reaches above the top of the current screen, while below the window there is still some space left.
Ahh: this happens only if XY is *not* maximized, i.e. the center of XY is above the center of the screen!

So, verified: the size of the text-window is limited to the size of the physical screen(good!), but it's center is aligned with the center of XY. If the text-window is big, and XY is above or below the center of the screen, part of the text-window is above or below the physical screen.

I think this is not OK :cry:

To be complete, output of Screen;

Virtual Screen:
X = 0
Y = -576
Width = 5760
Height = 1600

Screen.Width = 1280
Screen.Height = 1024

GetCursorPos = 563, 315

Number of monitors = 3
Work Area: (0, 0) - (1280, 1024)

Main form: (-2, 0) - (1278, 810)

Screen DPI: 96 (100%)
Screen Color Depth: 32


Just noticed: Main form's height is 810 - that's why the problem starts if text-window's height is bigger 8)

Re: Misplaced text-window if height is big

Posted: 06 Jun 2014 07:59
by admin
I fail to reproduce this on Win8.

Re: Misplaced text-window if height is big

Posted: 06 Jun 2014 11:40
by PeterH
Maybe it has to do with multiple (3) screens? As the hidden Text() area was still inside the virtual screen. (The real screen is a rather small one, located left and aligned at bottom with the others.)

Though: moved XY to the largest screen, rather on top, and retested: the same happened - when the Text() window was large enough it left the top of the window - and as such also the top of the virtual screen.
The problem, as I see it: middle of Text() window is held same as middle of XY window - and if XY isn't in the middle and Text() is big a part leaves the screen.

What I'm also a bit sceptical about: XY seems to get info about screen when started, and (at least part of) it will not be updated if moved to another screen. (This is only related to output of the ::screen; command - don't know what's internal.)

Must leave now - will have another look later...

Re: Misplaced text-window if height is big

Posted: 06 Jun 2014 11:47
by admin
Yes, correct analysis I'd say. I'll look at this once I got more screens running.