Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Capturing double click events

Status
Not open for further replies.

shetlandbob

Programmer
Mar 9, 2004
528
GB
I have a dialog application with a static text control and a list box control.

In my controls I capture both a single click event (selection in list) and a double click event.

When I have a double click the single click event is also activated. Is there any way to stop this, so that when the user double clicks on the control the single click event is not captured??

Any ideas would be much appreciated!!

Cheers
 
No, there's no neat way to work around that one (ie posting a message and hope its recieved after the dblclick won't work)

But is that so bad? I mean, if I double click an item doesn't that imply I want to
1) Select it
2) Execute its "default" operation?

/Per
[sub]
"It was a work of art, flawless, sublime. A triumph equaled only by its monumental failure."[/sub]
 
no its not that bad, it still code it to do what I want it to. I was just wondering if it could be done.

Cheers for the reply anyway
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top