Display Scaling

Support for all customers who have purchased a SAPIEN PowerShell Studio product license. This forum does not offer a response time guarantee.
Forum rules
DO NOT POST SUBSCRIPTION NUMBERS, LICENSE 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.
DLockwood
Posts: 1
Joined: Fri May 24, 2019 11:46 am

Display Scaling

Post by DLockwood » Wed Jun 12, 2019 7:02 am

Hello all,

I have been struggling with Sapien forms. I was finding that forms developed were not rendered correctly when used on other systems. I spent too long looking at suggested solutions on this forum and the wider web, most were suggesting the same solutions, TableLayouts and AutoScale properties. None of which were addressing my issue.

Eventually, I found the solution for myself...

The problem is caused by scaling of the actual Sapient Studio GUI Editor and not with the deployed application. I set the compatibility mode, high DPI settings, to override high DPI scaling performed by System (Enhanced) on the Powershell Sudio.exe. Now I can edit my forms and what I see in Sapien is what I actually get on my output.

Hope this helps someone.

User avatar
Alexander Riedel
Posts: 6973
Joined: Tue May 29, 2007 4:43 pm

Re: Display Scaling

Post by Alexander Riedel » Wed Jun 12, 2019 7:10 am

It's actually Microsoft Windows Forms and yes, it is always a struggle to develop user interfaces that work on multiple resolutions, magnification factors and display sizes.
Unfortunately that is not an issue limited to Windows Forms or PowerShell Studio. Maybe you can share a screenshot of your settings, that will make it easier for users to understand what you used.
Alexander Riedel
SAPIEN Technologies, Inc.