工具提示气球在 5 秒后消失
我将属性“AutoPopDelay”设置为 60000,但每次我将鼠标悬停在关联元素上时,即使鼠标指针在元素上保持静止,气球也只会保持打开状态 5 秒。
关于可能导致这种情况的原因有什么想法吗?
编辑:我正在使用 WinForms
I have the property "AutoPopDelay" set to 60000, but every time I hover over an associated element, the balloon only stays open for 5 seconds even when my mouse pointer stays over stationary over the element.
Any ideas on what could be causing this?
Edit: I am using WinForms
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
稍微使用一下工具提示控件,似乎您可以将 AutoPopDelay 设置为 32767 以内的任何值,高于该值的任何值都会默认回落到 5000。我的猜测是在后台使用的是 Short,而不是 int。
Playing around with the tool tip control a bit it seems you can set AutoPopDelay to anything up to 32767 anything above that and it will default back down to 5000. My guess is in the background a short is being used rather then a int.
阅读 MSDN 上的
AutoPopDelay
文档 (链接)您可以延迟弹出窗口的最长时间为5000毫秒。如果您想要更长的持续时间,请使用
Show
方法来控制工具提示显示的确切时刻。...
但是,我相信如果您需要工具提示保持打开那么长时间,您正在尝试解决问题的症状而不是问题的原因。根据定义,工具提示是“一个小框,其中包含有关用户指向的项目的上下文信息”。如果用户无法在 5 秒内阅读工具提示试图建议的内容,那么它就不是真正的“提示”,而是帮助文件中的一整章。
Reading the documentation for the
AutoPopDelay
on MSDN (link) the maximum time you can delay a popup is 5000 milliseconds.If you want a longer duration, use the
Show
method to control the exact moment when the ToolTip is displayed....
However, I believe that you are trying to cure the symptoms and not the cause of your problem if you need a ToolTip to stay open for that long. A tool tip is, by definition, is "a small box with contextual information about the item the user to pointing to". If the user is unable to read what the tooltip is trying to suggest in 5 seconds, then it is not really a "tip" but an entire chapter from the help file.