Hi !

You could also use the mouse capture API for a window, see the
following API references:
  * SetCapture()
  * GetCapture()
  * ReleaseCapture()

The window you can use if either your application's main window
(if you want to capture all mouse clicks at the application level)
or your form's window (if you want to capture mouse clicks at the
form level).  

It is quite easy to "capture" and "release" the mouse as and when
you wish, all without external DLL's, etc.

Regards,
Leon

-------------------------------------------------------------------
Leon Raj                  Private email  (NZ):   [EMAIL PROTECTED]
the "Kiwi Viking"         Private email (FIN): [EMAIL PROTECTED]
Jyska, FINLAND                  (formerly of Auckland, NEW ZEALAND)
-------------------------------------------------------------------



> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On
> Behalf Of Matthew Comb
> Sent: Tuesday, 12 October 1999 02:01
> To: Multiple recipients of list delphi
> Subject: [DUG]: controlling mouse.
> 
> 
> Hi guys, I have an app where I don't want any mouse events to 
> be registered
> after a certain point. This includes all onclick events. Is 
> there a way I
> can intercept all of these for all controls on the form or 
> simply just shut
> down the mouse for this app. Other apps will require the mouse to be
> working.
> 
> Cheers,
> 
> Matt.
> 
> --------------------------------------------------------------
> -------------
>     New Zealand Delphi Users group - Delphi List - 
> [EMAIL PROTECTED]
>                   Website: http://www.delphi.org.nz
> 
---------------------------------------------------------------------------
    New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
                  Website: http://www.delphi.org.nz

Reply via email to