Original Post
In programming my GUI, I've come across a little gotcha. I can implement pretty much everything i need, but i was wondering how other people detect a "double click" event. Theoretically, if you click the mouse once it sends a "button click" signal. If you detect another click within a certain time frame, you can call it a double click and send a double click message. But you can't take back the single click message you already sent. The alternative would be to NOT send a single click message within a certain time frame of the first click, just in case a second click comes down the pipe in short order. Once the double click wait time has expired without a second click, send the single click event. However, doing this puts a delayed reaction on all single clicks (and most clicks are singles anyway). Any ideas on how to do this nicely? I'm currently not in need of any double clicking so it's not a big issue. i was mostly just curious.