Virtual StringTree's hint windows are left out on the screen

南楼画角 提交于 2019-12-13 01:25:44

问题


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.


回答1:


Does it help to just repaint the window?




回答2:


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.



来源:https://stackoverflow.com/questions/2116085/virtual-stringtrees-hint-windows-are-left-out-on-the-screen

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!