How can I detect all mouse events in the application, not just for the active control? I need to get around some problems I'm having with a component when using the built-in drag and drop functionality, so I'm trying to do it using other mouse events.
The problem I'm having now is: I need to be able to determine what control the mouse cursor is over after a 'simulated/manual' drag operation. But the OnMouseUp event fires for the control that was active when the mouse button was first depressed. OnMouseMove and OnMouseEnter do the same thing, they only fire for the 'source' control, not the control the mouse is over when the button is released. Is there any way I can have the application respond to mouse movement and mouse button events so I could hold the information in global variables so that when the events fire, I can know which control is the 'target'? Something along the lines of updating a global TObject variable to point to the control the mouse pointer is currently over so I could do something like this in the OnMouseUp event of the controls: if 'Sender' <> ControlTheMouseIsOver then ... _______________________________________________ Delphi mailing list -> [email protected] http://www.elists.org/mailman/listinfo/delphi

