I used a timer to handle this.

The onclick starts a timer. If the timer fires the code you want to run
is done and stops the timer.
The ondblclick stops the timer and does what it wants.

Stacey

> -----Original Message-----
> From: Paul Lowman [mailto:[EMAIL PROTECTED] 
> Sent: Tuesday, 21 October 2003 12:44
> To: Multiple recipients of list delphi
> Subject: [DUG]: Single , double mouse click
> 
> 
> Hi all
> 
> This is one I thought I knew but cannot for the life of me remember.
> 
> How do I handle a single and double mouse click in different 
> ways. If I use OnClick and OnDblClick the OnClick always 
> fires as well as the OnDblClick when I double click the 
> mouse. How to differentiate them ?
> 
> Regards
> 
> Paul Lowman
> Lowman Consulting Ltd.
> 
> [EMAIL PROTECTED]
> 
> --------------------------------------------------------------
> -------------
>     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/
> 
---------------------------------------------------------------------------
    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/

Reply via email to