Mega Code Archive

 
Categories / Delphi / Examples
 

Over which component is the mouse currently

Q: Is it possible to know which component the mouse is over? Does the mouse know which component it's over? A: Just trap the cm_mouseenter and cm_mouseleave message. It's not a windows message but a delphi message. For information, see in Controls unit.