Standard-Toolkit icon indicating copy to clipboard operation
Standard-Toolkit copied to clipboard

[Bug]: Menu no longer scales on a 96 -> 240 DPI monitor

Open PWagner1 opened this issue 3 years ago • 3 comments

From user gumby via Discord

Hoping somebody can help. As soon as we set the GlobalApplyToolstrips to true the menu no longer scales on a 96 -> 240 DPI monitor. Are we missing something?

            KryptonManager manager = new KryptonManager();
            manager.GlobalApplyToolstrips = false;
            manager.GlobalPaletteMode = PaletteModeManager.ProfessionalSystem;

No exception is thrown just the MenuStrip scales incorrectly. i.e. The font becomes really small when moving from the 96 to 240 DPI

PWagner1 avatar Jul 07 '22 16:07 PWagner1

Seems to be okay in the Demo App: image

with the following setting: image

Smurf-IV avatar Jul 16 '22 09:07 Smurf-IV

Here's the start of the Discord message exchange https://canary.discord.com/channels/620577714889424916/620577714889424918/994516359847366716

PWagner1 avatar Jul 16 '22 09:07 PWagner1

@Smurf-IV Isn't your demo app .net 4?

Sorry I should clarify these scaling issues are .net 6 with a manifest

<application xmlns="urn:schemas-microsoft-com:asm.v3"> <windowsSettings> <dpiAware xmlns="http://schemas.microsoft.com/SMI/2005/WindowsSettings">PerMonitorV2</dpiAware> <longPathAware xmlns="http://schemas.microsoft.com/SMI/2016/WindowsSettings">true</longPathAware> </windowsSettings> </application>

greengumby avatar Jul 20 '22 06:07 greengumby

As a workaround, use the following in programs.cs: Application.SetHighDpiMode(HighDpiMode.SystemAware);

The PerMonitorV2 setting is all confused for the Krypton if monitor 2 is set to 200% scaling and is also set as the main monitor, when Monitor 1 is set to a different dpi setting (Note: Visual studio is also "Confused" in this setting as well when it is running on Mon 1, it tries to open things on Mon 2 in the wrong dpi, and overlaps into mon1 ....)

Smurf-IV avatar Oct 30 '22 13:10 Smurf-IV