This forum is temporaily read-only. All existing discussions remain available for reference. For new questions, bug reports or support requests, please contact us at mail@lmdsupport.com.
It looks like you're new here. If you want to get involved, click one of these buttons!
Comments
I found the answer was even easier. There's no need for an OnMouseMove handler. Just set the HintInfo.CursorRect to the bounds of the tab:
HintStr := ch.Panel.Caption;
HintInfo.CursorRect := ht.Zone.Tabs[ht.Index].Bounds;
When the mouse moves outside of that rectangle but is still within the control's client area, the ShowHint event is generated again to obtain new information to update the current hint with. Consequently, the hint disappears as soon as the mouse moves outside of that tab, and changes when the mouse moves to another tab. No messing about with Application.ActivateHint and Application.CancelHint needed.
See this answer on Stack Overflow:
http://stackoverflow.com/a/15031957/127670