关闭触摸屏上的 Windows 窗体

发布于 2024-09-01 16:21:55 字数 355 浏览 2 评论 0原文

我们的客户手指很粗,我们也是。我们将触摸屏上网本拆开,将其插入我们的定制硬件中,然后我编写一个显示在触摸屏上的软件界面。问题是它在屏幕上有大约 3/4 英寸的边框,这意味着击中那个小红色“X”成为一个挑战,特别是考虑到边缘和角落的电容能力降低。

有没有办法让这个标准接近按钮更大?当然,在应用程序中,我总是可以制作非常漂亮的 80x80 按钮,完全可用,但似乎没有办法覆盖表单的默认框架。功能,但似乎没有什么可以使其足够大以成功命中。

简单地添加工具栏按钮也不是一个好的选择,我们更喜欢使用普通 Windows 应用程序的标准外观和感觉

。某种“信息亭模式”,我们只需全屏显示而不执行任何涉及任务栏或标题栏的操作,如果是这样的话,实现起来有多困难?

Our clients have fat fingers, and so do we. We take touchscreen netbooks apart to insert them into our custom hardware, and I write a software interface that shows up on the touchscreen. The problem is that it has about a 3/4" bezel over the screen, which means hitting that little red "X" becomes a challenge, especially considering reduced capacitive ability on the edges and corners.

Is there a way to make this standard close button larger? Of course in the application I can always make really nice 80x80 buttons that are perfectly usable, but there seems to be no way to override the default frame of the form. We have tried enabling Large Fonts and all the built-in accessibility features, but nothing seems to make it large enough to hit successfully.

Simply adding a toolbar button is also not much of an option. We prefer to utilize the standard look and feel of a normal Windows application.

Alternatively, should we be looking at making some sort of "kiosk mode" where we simply go fullscreen and do nothing involving the taskbar or title bar? How difficult is this to accomplish, if so?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

二货你真萌 2024-09-08 16:21:55

好吧,既然您正在设置硬件,我假设您能够配置预装的软件,包括 Windows。您不能进入“显示设置”并将标题栏变大,以便关闭按钮相应变大吗?

请参阅有关分发 Windows 主题的 MS 文章:http://support.microsoft.com/kb/310514

Well, since you're setting up the hardware, I presume you're able to configure preinstalled software, including Windows. Can't you just go into Display Settings and make the title bar larger, so that the close button grows accordingly?

See MS Article about distributing windows themes: http://support.microsoft.com/kb/310514

江城子 2024-09-08 16:21:55

获得一个大的关闭按钮相当容易。从Vista开始隐藏得很好,在Win7中是控制面板+个性化+窗口颜色,高级外观设置,项目=标题按钮,更改大小。不过,您可能不太喜欢这个,您会得到一个相当大的标题栏,大量浪费的屏幕空间。

从另一端解决这个问题:你的要求不寻常。大多数设置触摸屏应用程序的人都想知道如何防止用户关闭窗口。 Windows 窗体使得设计一堆窗体并在它们之间切换变得非常容易。这与普通桌面上的用户界面不太一样,尤其是在这里。您也可以将表单设计为用户控件,并在用户浏览 UI 时将它们切换到主窗口中或从主窗口中切换出来。与 Microsoft Outlook 类似。您甚至可以将现有表单转变为控件。将其 TopLevel 属性设置为 False,将 FormBorderStyle 设置为 None,将 Visible 设置为 true。

Getting a large close button is fairly easy to do. It is hidden well since Vista, in Win7 it is Control Panel + Personalization + Window Color, Advanced appearance settings, Item = Caption buttons, change the Size. You probably won't like this much though, you'll get a rather large caption bar, lots of waste screen real estate.

Tackling this from the other end: your request is unusual. Most anybody that sets up a touch screen app wants to know how to prevent the user from closing the window. Windows Forms makes it too easy to design a bunch of forms and switch between them. That isn't much of a user interface on a regular desktop, especially not here. You can design your forms as user controls as well and switch them in and out of the main window as the user navigates through the UI. Not unlike, say, Microsoft Outlook. You can even turn your existing form into a control. Set its TopLevel property to False, FormBorderStyle to None, Visible to true.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文