Neil!
Yes, that is exactly why this happens, the tooltip window overlaps
the editor window, and hence the editor window gets a mousemove (as the
mouse is now in the tooltip window). This causes the tooltip window to
close, and i yoy keep the caret in the same position, the tooltip window
will show and hide repeatedly. Why this didn't happen in previous
releases I do not know.
A work-around is to call SCI:CALLTIPSHOW with the position I get in
the DWELLSTART message + 1. This doesn't fully solve the problem though,
as if the position we are dwelling at is at the far right, the the
tooltip window will be aligned further to the left, and hence a
MOUSELEAVE message will be sent to the editor window.
Actually, I'm sure I'd like to regard this as a bug partly because
ot used to work in previous releases (which is no guarantee that is
should work the same in more recent releases, I know) and partly because
this is no easy fix. What used to b a simple matter when showing
tooltips is now complex (i.e., I need to figure out how far the tooltip
extends to the right, and if it's further to the right than will fit on
the screen, the I need to position the tooltip to the right of themouse
position). To be clear, I think Scintilla is great. Brilliant, actually,
and this is a very minor flaw.
Another fix, I guess, would be to ignore DWELLEND and instead use
WM_MOUSEMOVE? But the bext would be if the tooltip didn't cause a
WM_MOUSELEAVE on a WM_CREATE (which I guess is what is happening here? I
have to admit I am on deep water now).
/Karlsson