Neven MacEwan said: > No what I'm doing is a panel which can layout the TWincontrols > within it, but I'm using MouseMove to change the cursor to the relevant > drag cursor, but as I hit a control, mousemove ceases for the panel! > So I was wondering if there was some method for previewing mouse events
What you want to do then is to have the panel capture the mouse so that all mouse actions go to it rather than the window handle under the mouse. Have a look at the Windows SetCapture and ReleaseCapture API's, and Delphi use of these in places like the Mouse.Capture property, and the SetCaptureControl function in Controls.pas. You will also need to handle WM_CANCELMODE messages appropiately, and in some cases generate your own WM_CAPTUREMODE messages to ensure that all of your capture state handling remains correct. Cheers, Max. --------------------------------------------------------------------------- New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED] Website: http://www.delphi.org.nz To UnSub, send email to: [EMAIL PROTECTED] with body of "unsubscribe delphi" Web Archive at: http://www.mail-archive.com/delphi%40delphi.org.nz/