Virtual StringTree 的提示窗口在屏幕上被遗漏
请参阅此屏幕截图,中间是由 TVirtualStringTree 控件生成的小提示窗口,这些提示窗口被保留在屏幕上,这些提示窗口将保留在那里,直到应用程序退出。当显示树视图的提示并且鼠标快速离开到它旁边的窗口时,就会出现问题。
知道如何避免这种情况,或者如果很难做到这一点,如何清除那些未擦除的提示窗口吗?
几天前我问类似的问题,虽然屏幕截图中的提示窗口看起来相同,这不是同一个问题。那个问题,提示文本永远不显示,只显示那种未完成的提示窗口;这个问题,提示文本显示,但提示窗口在某种情况下没有完全擦除(如上所述)。希望它是清楚的。
See this screenshot, in the middle it's the small hint windows that are generated by a TVirtualStringTree control and were left out on the screen, these hint windows will remain there until the application exits. the problem happens when the treeview's hint is shown and the mouse leaves quickly to the window next to it.
Any idea about how to avoid this or how to clear those un-erased hint windows if it's difficult to avid this?
Few days ago I asked a similar question, while the hint windows in the screenshots look the same, the are not the same problem. That problem, the hint text never shows and only that kind of uncompleted hint windows are shown; This problem, the hint text shows but the hint windows are not completely erased in a case (as I described above). Hope it's clear.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
重新粉刷窗户有帮助吗?
Does it help to just repaint the window?
如果这是一个 Word 插件,这可能是一个原因。
也许您应该创建自己的提示窗口类(继承自 TVirtualTreeHintWindow),您可以自己管理该实例,然后重写 GetHintWindowClass 方法来使用此类。
If this is a Word addin that may be a reason.
Maybe you should create your own hint window class (inherit from TVirtualTreeHintWindow) which instance you can manage by yourself and then override the GetHintWindowClass method to use this class.