   Delphi and MouseMove
  Lets say you have a PaintBox (or really.. anything with a canvas). And you want it to show a border around the edge when the mouse moves over it, but you want the border to go away when the mouse leaves it. You can use the mousemove to detect that the mouse is over it, but how do you detect when the mouse leaves it (without checking any component outside of it)? The problem is, even if i have a 1 or 2 pixel border zone that makes it hide the border, if you move your mouse fast enough, it never triggers that event. Any ideas?   
  Use MouseCapture, it causes all mouse events to be sent to that control.When the MouseMove event is first fired, you set MouseCapture for the canvas to true. Then when your MouseMove handler sees that the mouse is outside the canvas, you execute whatever leave code you have and set MouseCapture to false.   ;  Thanks!   