触摸屏-最小化屏幕保护程序上的触摸(热点)区域 [英] Touchscreen - minimizing the touch (hotspot) area on a screensaver

查看:138
本文介绍了触摸屏-最小化屏幕保护程序上的触摸(热点)区域的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经在运行Windows XP的信息亭上开发了触摸屏应用程序.该应用程序是用C#编写的Windows窗体.一切正常,我已经准备好进行部署.由于这些信息亭将在公共场所,因此我认为使用屏幕保护程序来显示带有不同横断面的图片和信息的屏幕保护程序将非常引人注目.每个人都喜欢.

但是,应用程序的第一个屏幕是启动屏幕,上面有两个大按钮,客户端必须触摸一个以识别它们是哪种客户端.触摸按钮后,将出现输入屏幕(闪屏后面).

问题在于,当屏幕保护程序处于活动状态并且有人在屏幕保护程序后面的按钮之一的相同位置触摸屏幕时,两个按钮的初始屏幕将被绕开并直接进入输入屏幕.然后,通过他们不知不觉地意外触摸的任何按钮来识别客户端.这只是触摸屏的问题,如果使用鼠标则不是问题.

我一直在这里阅读各种文章以及有关如何创建屏幕保护程序的Google列表.似乎可行,但尚未找到任何人解决.如果有人这样做,我听不懂.

在继续之前,任何人都可以告诉我是否可以在屏幕保护程序上确定一个可能成为热点的区域以将其停用.触摸屏保上的其他区域将无济于事.如果是这样,我可以将此区域放置在两个按钮上方的某个位置.

我希望这是有道理的.任何建议将不胜感激.

I have developed a touchscreen application on a kiosk running Windows XP. The app is a Windows Form written in C#. All works fine and I am ready to deploy. Since these kiosks will be in public places, I thought a screensaver showing pictures and information with different transistions would be eye catching. Everyone likes it.

However, the first screen of the app is a splashscreen with two big buttons on it and the client must touch one to identify what kind of client they are. Once a button is touched, the input screen (behind the splashscreen) appears.

The problem is that when the screensaver is active and someone touches the screen at the same location of one of the buttons behind the screensaver, the two button splashscreen is bypassed and goes directly to the input screen. The client is then identified by whatever button they accidently touched without knowing it. This is only a problem with the touchscreen and not if a mouse is used.

I''ve been reading all kinds of articles here and Google lists of how to create screensavers. Seems doable but have not found anyone address this. If someone did, I did not understand it.

Before I continue, can anyone tell me if it is possible to identify an area on the screensaver that can be hotspot to deactivate it. Touching other areas on screensaver would do nothing. If so, I would place this area in some place not over the two buttons.

I hope this makes sense. Any advise would be much appreciated.

推荐答案

奇怪的问题.

您想要的解决方案对您没有太大帮助.您将创建另一个问题:用户将无法一键摆脱启动画面或屏幕保护程序.许多人会感到困惑.

但是,有更好的解决方法.在显示触摸屏之前,请禁用下面的所有内容. (将Control.Enabled分配给false.您可以在主窗体或其他窗体上执行此操作.)在关闭或隐藏屏幕保护程序窗体时重新启用.

—SA
Strange problem.

The solution you want would not help you much. You will create another problem: the user won''t be able to get rid off the your splash or screen saver in one touch. Many will be confused.

However, there is much better work-around. Before showing touch screen, disable everything underneath. (Assign Control.Enabled to false. You can do it for your main form or whatever.) Re-enable when you close or hide your screen saver form.

—SA


这篇关于触摸屏-最小化屏幕保护程序上的触摸(热点)区域的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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