comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » processing mouse dbl-clicks in IDL?
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: processing mouse dbl-clicks in IDL? [message #8789 is a reply to message #8702] Mon, 21 April 1997 00:00 Go to previous message
J.D. Smith is currently offline  J.D. Smith
Messages: 214
Registered: August 1996
Senior Member
David Fanning wrote:

> Well, here is a piece of code that can reliably detect a double
> click on a BUTTON widget, at least on my Mac and Windows NT machines.
> I wrote this off the top of my head. I haven't tried to put this
> into a real piece of code, so I don't know if it will be generally
> useful. (My personal feeling is that I would test any code with
> this kind of button stategy VERY carefully before I showed it to
> anyone important!)
>
> Here is how it works. The first button click sets a "first" flag
> and sends a TIMER event to the button. If a SECOND button click event
> gets to the event handler BEFORE the TIMER event does, then this
> is a DOUBLE CLICK event! A timer delay of 0.1 second works
> perfectly on my Mac. I need a delay of 0.2 seconds on
> my (much faster) Windows NT machine.
>
> Let me know how this works in a real piece of code. :-)

I'd like also to point out that widget_list returns double clicks in its
events... so if you only need to detect double clicks on a list of text
items, there's no work to do. Also, it's machine/OS independent.

JD
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: START a FREE Online Business TODAY
Next Topic: Object Oriented Programming Book Recommendation

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Fri Oct 10 14:17:13 PDT 2025

Total time taken to generate the page: 0.88390 seconds