views:

154

answers:

2

Hi,

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?

alt text

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.

A: 

Does it help to just repaint the window?

birger
No, even refreshing the whole computer desktop does not help, those seems to be standalone windows, but not unpainted window areas...
Edwin
A: 

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.

Thank you very much for the hint, straveu! What special actions my own hint window should do? A small sample is appreciated!
Edwin