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:
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.
Resizable windows acting up on left monitor when resizing
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.
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.
- FrankAndrew
- Posts: 164
- Last visit: Sat Apr 01, 2023 1:52 am
- Alexander Riedel
- Posts: 8488
- Last visit: Tue Apr 16, 2024 8:42 am
- Been upvoted: 37 times
Re: Resizable windows acting up on left monitor when resizing
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.
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.
SAPIEN Technologies, Inc.
- FrankAndrew
- Posts: 164
- Last visit: Sat Apr 01, 2023 1:52 am
Re: Resizable windows acting up on left monitor when resizing
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!
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!
- FrankAndrew
- Posts: 164
- Last visit: Sat Apr 01, 2023 1:52 am
Re: Resizable windows acting up on left monitor when resizing
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.
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.
- Alexander Riedel
- Posts: 8488
- Last visit: Tue Apr 16, 2024 8:42 am
- Been upvoted: 37 times
Re: Resizable windows acting up on left monitor when resizing
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.
The packaged exe's use an earlier framework for backward compatibility.
Alexander Riedel
SAPIEN Technologies, Inc.
SAPIEN Technologies, Inc.
- FrankAndrew
- Posts: 164
- Last visit: Sat Apr 01, 2023 1:52 am
Re: Resizable windows acting up on left monitor when resizing
Sounds like a good plan.
Ich bin gespannt was raus kommt.
Thanks Alex.
Ich bin gespannt was raus kommt.
Thanks Alex.
Re: Resizable windows acting up on left monitor when resizing
Hello,
Could you please zip and upload the form and video to that location
https://www.sapien.com/support/upload
Thanks
Could you please zip and upload the form and video to that location
https://www.sapien.com/support/upload
Thanks
- FrankAndrew
- Posts: 164
- Last visit: Sat Apr 01, 2023 1:52 am
Re: Resizable windows acting up on left monitor when resizing
Thanks, will check and try to reproduce
- FrankAndrew
- Posts: 164
- Last visit: Sat Apr 01, 2023 1:52 am
Re: Resizable windows acting up on left monitor when resizing
How are thngs progressing with this problem?