UI Truncation on Localized Win7 Versions

你。 提交于 2020-01-02 12:25:33

问题


I have a 2 UI developed in C# .NET 3 and Wise Installer respectively. The UI is a Page of Wizard. This works perfectly alright on Win 7 English OS. But when I deploy the app on Win7 Korean or Chinese. I see the truncation.

I see the issue even if I hard code the Font as the default font for any localized OS is different.

Other Things, I tried were - Changing the Windows Theme, Changing the resolution. But the Issue remains there.

I want to understand what could be the reason for such change? Is there any official documentation regarding such a behavior? What could be the solution to this issue?


回答1:


It can be difficult to get a "fixed size" form like a wizard to behave itself when the OS DPI setting is changed, and I'd imagine you may have similar problems with different language editions of Windows. (The biggest difficulties are having to constantly reboot your PC to test it, and that the Forms Designer is affected by the current OS/Font/DPI settings, so you can't edit the form in your test environment because then it won't work when you return to your coding environment!)

Forms are scaled by default based on the font and DPI settings on the destination computer. In the Form properties, look for the AutoScaleMode option, and try setting it to "DPI" or "None" instead of "Font".

Another option that may help is the MinimumSize property, which may help you to stop the window becoming too small while still allowing it to grow for "Large Fonts" modes.



来源:https://stackoverflow.com/questions/4457948/ui-truncation-on-localized-win7-versions

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!