Misplaced text-window if height is big

Things you’d like to miss in the future...
Forum rules
You might want to read this if you're looking for priority service

:info: Please Include The Following Information
1) Your XYplorer Version (e.g., v28.00.0801)
2) Your Windows Version (e.g., Win 11)
3) Your Screen Scaling Percentage (e.g., 125%).

:info: Use Your Profile Or Signature
We strongly recommend adding your Windows Version and Screen Scaling Percentage to the Location field in your Profile or to your Signature. That way, you only have to type them once, and we won't have to search for that vital information.

:info: How To Attach Images
When attaching an Image, please use the Attachment tab at the bottom of your post and click "Add files".
Post Reply
PeterH
Posts: 2830
Joined: 21 Nov 2005 20:39
Location: DE W11Pro 24H2, 1920*1200*100% 3840*2160*150%

Misplaced text-window if height is big

Post 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)

admin
Site Admin
Posts: 67282
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: Misplaced text-window if height is big

Post by admin »

I fail to reproduce this on Win8.

PeterH
Posts: 2830
Joined: 21 Nov 2005 20:39
Location: DE W11Pro 24H2, 1920*1200*100% 3840*2160*150%

Re: Misplaced text-window if height is big

Post 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...

admin
Site Admin
Posts: 67282
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: Misplaced text-window if height is big

Post by admin »

Yes, correct analysis I'd say. I'll look at this once I got more screens running.

Post Reply