On Windows 10 Some FormBorderStyles has no borders

痴心易碎 提交于 2019-12-12 03:41:55

问题


This is only an issue if you have Drop Shadows turned off in appearance settings.

I noticed some of our applications form windows had no borders. Specifically they have been missing the 1 pixel thick border for the left part, right part and bottom part of the form window. All of the forms had in common that they were using FormBorderStyle FixedToolWindow or SizableToolWindow. When it is like this it is hard to distinguish where one dialog stop and another one begins.

We find it plausible that some of our users will have their computers set up like this without the ability to change it.

Is there a way to get the dialog windows looking better without doing anything crazy like manually drawing all borders?


回答1:


Quoting part of a comment by Hans Passant:

By design for Win10, the left/bottom/right borders are transparent. Still quite visible against the large drop-shadow, so visible that is hard to tell that the border is transparent...

Our application has its own grahpical style that made it especially hard to distinguish where one dialog stops and the other one begins.

The quick solution for us was to stop using FormBorderStyle FixedToolWindow or SizableToolWindow.

Long term we are going trough all our dialogs and the graphical style of our application to make the dialogs more easily distinguishable from each other with or without borders.



来源:https://stackoverflow.com/questions/39831081/on-windows-10-some-formborderstyles-has-no-borders

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