Luke Pascoe asked about mouse capture:

> What I want is to Capture any mouse click on the screen while the form is
> visible and deal with it myself

Have a look at the TControl.MouseCapture property and its implementation.
This is a Delphi interface onto the Windows capture control facility, which
is basically a way of telling windows that a certain control should get all
the mouse clicks first.

While you at this you should also look into the use of the Windows
WM_CANCELMODE event, and the Delphi CM_CANCELMODE event, noth of which are
present to help with exactly this sort of stuff.

This is not documented, expected in perhaps some good books on Delphi, but
its all fairly plain code in Controls.pas.

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"

Reply via email to