Re: [DUG]: Single , double mouse click

2003-10-21 Thread Corey Murtagh
Alistair George wrote: Hello Paul, Ohhps dont forget if u use my code to reset the dblclck variable! Or better, have the OnDoubleClick stop the timer. No need for extra vars :) -- Corey Murtagh The Electric Monk "Quidquid latine dictum sit, altum viditur!" ---

Re: [DUG]: Single , double mouse click

2003-10-20 Thread Paul Lowman
Thanks but I've figured it out - only to decide its a crock anyway as the click response is now too slow ... Never mind Regards Paul Lowman Lowman Consulting Ltd. [EMAIL PROTECTED] --- New Zealand Delphi Users group

Re: [DUG]: Single , double mouse click

2003-10-20 Thread Alistair George
Hello Paul, Ohhps dont forget if u use my code to reset the dblclck variable! procedure TMainform.Panel2Click(Sender: TObject); Const dblclck: Byte=0; begin inc(dblclck,1); delay(500); //500 ms delay using appprocessmessages if dblclck>1 then showmessage('dbl click') else showmessage('Single click

RE: [DUG]: Single , double mouse click

2003-10-20 Thread Stacey Verner
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 Octobe