bramdejager / spcb

The SharePoint Client Browser (SPCB) uses the CSOM to connect to a remote SharePoint site collection and shows the site structure with related properties and values.
GNU General Public License v2.0
174 stars 48 forks source link

Problems with Resolution/Text Scaling #37

Closed bramdejager closed 6 years ago

bramdejager commented 6 years ago

Hey,

I have a display issue where everything is overlapping, I'm guessing it has something to do with the scaling feature on windows 8.1 perhaps? See the attached image :)

Overall, loving your tool mate, it has saved me countless times! Keep it up!

Cheers.

Attachments

SPCB1_7.PNG

This work item was migrated from CodePlex

CodePlex work item ID: '65006' Assigned to: 'BdeJager' Vote count: '3'

bramdejager commented 6 years ago

[mprota@24-2-2016] I'm having the same issue with latest version of both Online and 'normal' SPCB.

Didn't have this issue before when still using a HDPI screen

bramdejager commented 6 years ago

[UnknownUser@24-2-2016]

bramdejager commented 6 years ago

[mprota@25-2-2016] Hi Bram,

the easiest and which solves the most annoying issues (font of menu items huge, treeview items super small otherwise) is to set DPI awareness via adding a manifest file to the application.

In Visual Studio:

<?xml version="1.0" encoding="utf-8"?>
<asmv1:assembly manifestVersion="1.0" xmlns="urn:schemas-microsoft-com:asm.v1" xmlns:asmv1="urn:schemas-microsoft-com:asm.v1" xmlns:asmv3="urn:schemas-microsoft-com:asm.v3" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <asmv3:application>
    <asmv3:windowsSettings xmlns="http://schemas.microsoft.com/SMI/2005/WindowsSettings">
      <dpiAware>true</dpiAware>
    </asmv3:windowsSettings>
  </asmv3:application>
</asmv1:assembly>

BUT, nothing is for free! And for have it to work you need to give up ClickOnce support

Further: In some cases, where the Font is set to Segoe UI, the sub-property Font->GdiCharSet should be preferably set to 0

This solves most at least for the MainForm, but some dialog forms such as WhatsNew or AddSiteForm are really screwed up and looks difficult to fix.

What have you recently changed that influenced this so much? I'm pretty sure I still have an older version for the tool (backed up) I've been using without issues on HDPI

Hope it helps

bramdejager commented 6 years ago

[UnknownUser@9-3-2016]

bramdejager commented 6 years ago

[BdeJager@17-3-2016] Hi mprota,

Thanks for the feedback, the only difference between the Mainform and other forms is the setting "AutoScaleMode". For the MainForm this is set to DPI, other forms have the default which is Font.

Maybe that is causing the big difference between both?

Bram

bramdejager commented 6 years ago

[mprota@22-3-2016] The newer version (v2.2) is much better.

bramdejager commented 6 years ago

[UnknownUser@23-3-2016]