I want to show a hint as the user moves the mouse over a TDbStringGrid. It almost works, but the hint shows high and to the left.
In my OnMouseMove, I receive X & Y, which I think are abosulte screen corrdinates, but I can use dbGrid.MouseCoord(X, Y) to get a point within the DB grid.
When I show my hint using Application.ActivateHint(), it is placed high and to the left.
Any idea what I am doing wrong?
I'd try to use the
ClientToScreenmethod to convert the control's relative coordinates to screen coordinates sinceActivateHintuses screen coordinates and events likeOnMouseMovereceives control relative ones. In code, it might look like this: