可以更改悬停间隔吗? [英] Can the hover interval be changed?

查看:71
本文介绍了可以更改悬停间隔吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有允许用户将鼠标悬停在控件上的代码,它将进行响应.但是,我希望悬停能更快地触发.有没有办法加快悬停反应?

I have code that allows a user to hover over a control, and it will respond. However, I'd like the hovering to fire a little quicker. Is there a way to speed up the hover reaction?

推荐答案

在生成MouseHover事件之前,故意延迟时间为SystemInformation.MouseHoverTime毫秒,作为一种简单的替代方法,您可以使用MouseEnter事件来代替,这将立即触发.

There is an intentional time delay of SystemInformation.MouseHoverTime milliseconds before the MouseHover event is generated, as a simple alternative you can use the MouseEnter event instead, which will trigger immediately.

这篇关于可以更改悬停间隔吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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