在 Windows 10 上,某些 FormBorderStyles 没有边框 [英] On Windows 10 Some FormBorderStyles has no borders

查看:27
本文介绍了在 Windows 10 上,某些 FormBorderStyles 没有边框的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如果您在外观设置中关闭了投影,这只是一个问题.

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

我注意到我们的一些应用程序窗体窗口没有边框.具体来说,他们在表单窗口的左侧、右侧和底部缺少 1 像素厚的边框.所有表单都有一个共同点,即它们都使用 FormBorderStyle FixedToolWindow 或 SizableToolWindow.在这种情况下,很难区分一个对话在哪里停止,另一个对话从哪里开始.

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?

推荐答案

引用 Hans Passant 评论的一部分:

Quoting part of a comment by Hans Passant:

根据 Win10 的设计,左/下/右边框是透明的.在大阴影下仍然很明显,如此明显以至于很难说边框是透明的......

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.

我们的快速解决方案是停止使用 FormBorderStyle FixedToolWindow 或 SizableToolWindow.

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.

这篇关于在 Windows 10 上,某些 FormBorderStyles 没有边框的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆