{"id":12355,"date":"2016-07-05T08:00:11","date_gmt":"2016-07-05T15:00:11","guid":{"rendered":"https:\/\/www.sapien.com\/blog\/?p=12355"},"modified":"2016-07-07T10:09:59","modified_gmt":"2016-07-07T17:09:59","slug":"powershell-studio-2016-service-release-high-dpi-support","status":"publish","type":"post","link":"https:\/\/dev.sapien.com\/blog\/2016\/07\/05\/powershell-studio-2016-service-release-high-dpi-support\/","title":{"rendered":"PowerShell Studio 2016 &#8211; Service Release &amp; High DPI Support"},"content":{"rendered":"<p>We released a new service build of PowerShell Studio 2016 (v5.2.124)!<\/p>\n<p><a href=\"https:\/\/www.sapien.com\/blog\/wp-content\/uploads\/2016\/07\/PowerShell-Studio-High-DPI.png\" target=\"_blank\"><img loading=\"lazy\" decoding=\"async\" style=\"background-image: none; padding-top: 0px; padding-left: 0px; display: inline; padding-right: 0px; border-width: 0px;\" title=\"PowerShell Studio High DPI\" src=\"https:\/\/www.sapien.com\/blog\/wp-content\/uploads\/2016\/07\/PowerShell-Studio-High-DPI_thumb.png\" alt=\"PowerShell Studio High DPI\" width=\"644\" height=\"355\" border=\"0\" \/><\/a><\/p>\n<p>&nbsp;<\/p>\n<p><span style=\"font-size: large;\">Here\u2019s what\u2019s new:<\/span><\/p>\n<p><strong><span style=\"font-size: medium;\">High DPI Support<\/span><\/strong><\/p>\n<p>We have added high DPI support to PowerShell Studio\u2019s UI. Those of you who previously ran PowerShell Studio on a high DPI monitor (Windows 10 in particular) probably noticed that the application appeared fuzzy. The fuzzy appearance is caused by Windows\u2019 scaling of non-DPI aware applications. The good news is that this no longer the case with PowerShell Studio 2016.<\/p>\n<table border=\"0\" width=\"539\" cellspacing=\"0\" cellpadding=\"2\">\n<tbody>\n<tr>\n<td valign=\"top\" width=\"537\"><strong>Not DPI Aware<\/strong><\/td>\n<\/tr>\n<tr>\n<td valign=\"top\" width=\"537\"><a href=\"https:\/\/www.sapien.com\/blog\/wp-content\/uploads\/2016\/07\/Fuzzy-Non-DPI-Aware-1.png\" target=\"_blank\"><img loading=\"lazy\" decoding=\"async\" style=\"background-image: none; padding-top: 0px; padding-left: 0px; display: inline; padding-right: 0px; border-width: 0px;\" title=\"Fuzzy Non DPI Aware\" src=\"https:\/\/www.sapien.com\/blog\/wp-content\/uploads\/2016\/07\/Fuzzy-Non-DPI-Aware_thumb-1.png\" alt=\"Fuzzy Non DPI Aware\" width=\"531\" height=\"225\" border=\"0\" \/><\/a><\/td>\n<\/tr>\n<tr>\n<td valign=\"top\" width=\"536\"><strong>DPI Aware<\/strong><\/td>\n<\/tr>\n<tr>\n<td valign=\"top\" width=\"536\"><a href=\"https:\/\/www.sapien.com\/blog\/wp-content\/uploads\/2016\/07\/DPI-Aware-1.png\" target=\"_blank\"><img loading=\"lazy\" decoding=\"async\" style=\"background-image: none; padding-top: 0px; padding-left: 0px; display: inline; padding-right: 0px; border-width: 0px;\" title=\"DPI Aware\" src=\"https:\/\/www.sapien.com\/blog\/wp-content\/uploads\/2016\/07\/DPI-Aware_thumb-1.png\" alt=\"DPI Aware\" width=\"528\" height=\"229\" border=\"0\" \/><\/a><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p><strong>High DPI Layouts<\/strong><\/p>\n<p>With high DPI screens, you will require high DPI layouts. When PowerShell Studio detects a high DPI environment (DPI &gt; 96) it will automatically load (if present) the high DPI version of the selected layout.<\/p>\n<p>To create your own high DPI version of a custom layout, simply save the layout with the .HighDPI.layout extension:<\/p>\n<table class=\"nicetable\" border=\"0\" width=\"579\" cellspacing=\"0\" cellpadding=\"2\">\n<tbody>\n<tr>\n<td valign=\"top\" width=\"288\"><strong>Low DPI file:<\/strong><\/td>\n<td valign=\"top\" width=\"289\"><strong>High DPI file:<\/strong><\/td>\n<\/tr>\n<tr>\n<td valign=\"top\" width=\"288\">(Layout Name).layout<\/td>\n<td valign=\"top\" width=\"289\">(Layout Name).HighDPI.layout<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>&nbsp;<\/p>\n<p><strong>High DPI Designer<\/strong><\/p>\n<p>PowerShell Studio now ensures that your forms scale correctly in the designer. As a result, you can edit the same psf file in a low DPI environment and in a high DPI environment, while maintaining the form\u2019s scale (as oppose to Visual Studio where it is recommended to design the GUI in a 96 DPI environment because the form will not scale correctly when editing between different DPI environments.)<\/p>\n<p><span style=\"color: #800000;\">Important: Older versions of PowerShell Studio will incorrectly scale forms created in high DPI environments. Therefore, psf files created or saved by this version of PowerShell Studio <strong>will not be backwards compatible<\/strong>.<\/span><\/p>\n<p>&nbsp;<\/p>\n<p><strong>High DPI Control Sets<\/strong><\/p>\n<p>Similar to the designer, Control Sets now support high DPI scaling and will scale correctly in low DPI settings.<\/p>\n<p><span style=\"color: #800000;\">Important: Due to scaling compatibility, Control Sets created with this version <strong>will not be backwards compatible<\/strong> with older versions of PowerShell Studio.<\/span><\/p>\n<p>&nbsp;<\/p>\n<p><strong>High DPI Scripts<\/strong><\/p>\n<p>It is important that the GUIs you create display correctly when executed in high DPI environments. To ensure this, we updated the script generator to include the necessary code to allow your GUIs to scale correctly. Saving the psf file in this build is all that is needed.<\/p>\n<p>We will discuss how to design a GUI for high DPI environments in an upcoming article, because there are some design considerations you need to address in order for your controls to display correctly.<\/p>\n<p>Note: Displaying the GUI in high DPI depends on the executing host. The host running the script must be DPI aware, otherwise the form may have a fuzzy look to it. PowerShell Studio\u2019s internal hosts and the packager engines are all DPI aware.<\/p>\n<p>&nbsp;<\/p>\n<p><strong>Document Selector<\/strong><\/p>\n<p>When you press [Ctrl + Tab] to cycle between documents, the Document Selector appears. We added a new option to disable this feature, allowing you to directly cycle through the document tabs without opening the selector.<\/p>\n<p><a href=\"https:\/\/www.sapien.com\/blog\/wp-content\/uploads\/2016\/07\/Document-Selector-1.png\" target=\"_blank\"><img loading=\"lazy\" decoding=\"async\" style=\"background-image: none; padding-top: 0px; padding-left: 0px; display: inline; padding-right: 0px; border-width: 0px;\" title=\"Document Selector\" src=\"https:\/\/www.sapien.com\/blog\/wp-content\/uploads\/2016\/07\/Document-Selector_thumb-1.png\" alt=\"Document Selector\" width=\"539\" height=\"484\" border=\"0\" \/><\/a><\/p>\n<p>Note: The Document Selector displays the documents in activation order instead of the tab order.<\/p>\n<p>You can modify the feature by checking\/unchecking the <strong>Show the document selector when navigating tabs<\/strong> option in Options-&gt;General:<\/p>\n<p><a href=\"https:\/\/www.sapien.com\/blog\/wp-content\/uploads\/2016\/07\/Options-Show-Document-Selector-1.png\" target=\"_blank\"><img loading=\"lazy\" decoding=\"async\" style=\"background-image: none; padding-top: 0px; padding-left: 0px; display: inline; padding-right: 0px; border-width: 0px;\" title=\"Options - Show Document Selector\" src=\"https:\/\/www.sapien.com\/blog\/wp-content\/uploads\/2016\/07\/Options-Show-Document-Selector_thumb-1.png\" alt=\"Options - Show Document Selector\" width=\"644\" height=\"469\" border=\"0\" \/><\/a><\/p>\n<p>&nbsp;<\/p>\n<p>Please continue providing your feedback. Many of the new features included in the service builds are suggestions from users like you. Therefore, if you have any suggestions or feature requests, please share them with us on our <a href=\"https:\/\/www.sapien.com\/forums\/viewforum.php?f=9\">Wish List and Feature Requests<\/a> forum.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>We released a new service build of PowerShell Studio 2016 (v5.2.124)! &nbsp; Here\u2019s what\u2019s new: High DPI Support We have added high DPI support to PowerShell Studio\u2019s UI. Those of you who previously ran PowerShell Studio on a high DPI monitor (Windows 10 in particular) probably noticed that the application appeared fuzzy. The fuzzy appearance [&hellip;]<\/p>\n","protected":false},"author":10,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"categories":[703,624,21,25],"tags":[1146,28,1068,645],"class_list":["post-12355","post","type-post","status-publish","format-standard","hentry","category-powershell-studio","category-service-build","category-software-news","category-windows-powershell","tag-dpi","tag-powershell","tag-powershell-studio-2016","tag-service-build-2"],"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/dev.sapien.com\/blog\/wp-json\/wp\/v2\/posts\/12355","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/dev.sapien.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/dev.sapien.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/dev.sapien.com\/blog\/wp-json\/wp\/v2\/users\/10"}],"replies":[{"embeddable":true,"href":"https:\/\/dev.sapien.com\/blog\/wp-json\/wp\/v2\/comments?post=12355"}],"version-history":[{"count":14,"href":"https:\/\/dev.sapien.com\/blog\/wp-json\/wp\/v2\/posts\/12355\/revisions"}],"predecessor-version":[{"id":12441,"href":"https:\/\/dev.sapien.com\/blog\/wp-json\/wp\/v2\/posts\/12355\/revisions\/12441"}],"wp:attachment":[{"href":"https:\/\/dev.sapien.com\/blog\/wp-json\/wp\/v2\/media?parent=12355"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/dev.sapien.com\/blog\/wp-json\/wp\/v2\/categories?post=12355"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/dev.sapien.com\/blog\/wp-json\/wp\/v2\/tags?post=12355"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}