Resizable windows acting up on left monitor when resizing

This forum can be browsed by the general public. Posting is limited to current SAPIEN license holders with active maintenance and does not offer a response time guarantee.
Forum rules
DO NOT POST LICENSE NUMBERS, ACTIVATION KEYS OR ANY OTHER LICENSING INFORMATION IN THIS FORUM.
Only the original author and our tech personnel can reply to a topic that is created in this forum. If you find a topic that relates to an issue you are having, please create a new topic and reference the other in your post.

Any code longer than three lines should be added as code using the 'Select Code' dropdown menu or attached as a file.
This topic is 4 years and 1 month old and has exceeded the time allowed for comments. Please begin a new topic or use the search feature to find a similar but newer topic.
User avatar
FrankAndrew
Posts: 164
Last visit: Sat Apr 01, 2023 1:52 am

Resizable windows acting up on left monitor when resizing

Post by FrankAndrew »

Product, version and build: PowerShell Studio 2019, 5.6.170
32 or 64 bit version of product: 64bit
Operating system: Windows 10 Enterprise (1809)
32 or 64 bit OS: 64bit

I have discovered a problem with resizable windows/dialogs/forms when they are located on a monitor LEFT of the Primary monitor. (The position value of X is in the negitive, who knows what happens when the Y value is negitive)

This happens with both an "exported" .ps1 file and when it is converted to an EXE file.

The mouse pointer and the action for resizing is wrong when the mouse pointer is at the bottom of the dialog but NOT at the lower right hand corner. The mouse pointer and the resizing action acts as IF it was at the lower right hand corner even though it is NOT.

This ONLY happens on a monitor that is LEFT of the primary monitor:
Monitor relationships
Monitor relationships
2020.01.14_08-00-28_Two_Monitors_Right_one_is_Primary.png (35.2 KiB) Viewed 5483 times
This problem might be a SAPIEN problem or it might be a Microsoft library problem.

I would like to upload a test form and a 3MB Video (MP4) if you would please let me know how I can upload something other than a picture.
User avatar
Alexander Riedel
Posts: 8478
Last visit: Tue Mar 26, 2024 8:52 am
Answers: 19
Been upvoted: 37 times

Re: Resizable windows acting up on left monitor when resizing

Post by Alexander Riedel »

We don't really have anything to do with setting the mouse cursor on frame elements, multi-monitor support, or resizing.
I would suggest to use a non .NET application (e.g. PrimalScript, PrimalPad, Notepad) and see if that has the same issue.
In that case it is most likely a Windows or display/ graphics / mouse driver problem.
If the problem only occurs with .NET apps (Powershell, Powershell Studio etc) then it is .NET framework problem.
If it only occurs in SOME .NET applications, it might be the framework version or the.config file.

Hope that helps.
Alexander Riedel
SAPIEN Technologies, Inc.
User avatar
FrankAndrew
Posts: 164
Last visit: Sat Apr 01, 2023 1:52 am

Re: Resizable windows acting up on left monitor when resizing

Post by FrankAndrew »

Hi Alex,

I have only seen this with PowerShell and the EXEs that I have created with it.
I had been observing this for the last month and investigated today.
I just found out today that it had to do with the X < 0 values.

I have seen NO other programs that act like this.

I would hope that you guys could determine if it is the MS libs and like you said which ones.

I do NOT remeber seeing this on Windows 7 but who has that anymore.
I cannot choose which .NET PowerShell or SAPIEN is using.

This is NOT a big Problem it is just silly. It would be great if you guys had the expertise and time to nail it down to which MS stuff is broken and then let MS know what they need to fix. They have also not noticed this behavior.

If a lot of programers that use PowerShell Studio are not using resizable dialogs/forms then they will not even notice this.
And again they would need to have the constellation of a monitor left of the primary.

As I like to say… Are we having FUN yet!
User avatar
FrankAndrew
Posts: 164
Last visit: Sat Apr 01, 2023 1:52 am

Re: Resizable windows acting up on left monitor when resizing

Post by FrankAndrew »

PowerShell Studio dialog/windows/forms do NOT have this problem.
But it DOES occur when the same Version of PowerShell Studio is running the program in debug mode.
Maybe that tells you which MS libs are being used.
User avatar
Alexander Riedel
Posts: 8478
Last visit: Tue Mar 26, 2024 8:52 am
Answers: 19
Been upvoted: 37 times

Re: Resizable windows acting up on left monitor when resizing

Post by Alexander Riedel »

I'll send this thread to QA and see what they can find out.
The packaged exe's use an earlier framework for backward compatibility.
Alexander Riedel
SAPIEN Technologies, Inc.
User avatar
FrankAndrew
Posts: 164
Last visit: Sat Apr 01, 2023 1:52 am

Re: Resizable windows acting up on left monitor when resizing

Post by FrankAndrew »

Sounds like a good plan.

Ich bin gespannt was raus kommt.

Thanks Alex.
User avatar
Olga_B
Site Admin
Posts: 196
Last visit: Mon Mar 25, 2024 11:57 am

Re: Resizable windows acting up on left monitor when resizing

Post by Olga_B »

Hello,
Could you please zip and upload the form and video to that location

https://www.sapien.com/support/upload

Thanks
User avatar
FrankAndrew
Posts: 164
Last visit: Sat Apr 01, 2023 1:52 am

Re: Resizable windows acting up on left monitor when resizing

Post by FrankAndrew »

I just uploaded the files for you.
User avatar
Olga_B
Site Admin
Posts: 196
Last visit: Mon Mar 25, 2024 11:57 am

Re: Resizable windows acting up on left monitor when resizing

Post by Olga_B »

Thanks, will check and try to reproduce
User avatar
FrankAndrew
Posts: 164
Last visit: Sat Apr 01, 2023 1:52 am

Re: Resizable windows acting up on left monitor when resizing

Post by FrankAndrew »

How are thngs progressing with this problem?
This topic is 4 years and 1 month old and has exceeded the time allowed for comments. Please begin a new topic or use the search feature to find a similar but newer topic.