OnClik and OnDoubleClick event
-
-
I am handling OnClik and OnDoubleClick event on a listControl. When ever user doubleclicks on a item, first onclick and then OnDoubleClick event gets fired. Is there a way to avoid onclick event when user has DoubleClicked on the item ? Sandeep Naik
How about starting a timer that's longer than the interval between double-clicks? So if 200 ms is the longest interval between double-clicks, start a timer with an interval of 250ms. In double-click event and in timer event, kill the timer. [insert witty comment here] bdiamond :zzz:
-
I am handling OnClik and OnDoubleClick event on a listControl. When ever user doubleclicks on a item, first onclick and then OnDoubleClick event gets fired. Is there a way to avoid onclick event when user has DoubleClicked on the item ? Sandeep Naik
I'm curious: what does your
On``Click()
handler do (eg: does it update a selection count?) /ravi My new year's resolution: 2048 x 1536 Home | Articles | Freeware | Music ravib@ravib.com -
I'm curious: what does your
On``Click()
handler do (eg: does it update a selection count?) /ravi My new year's resolution: 2048 x 1536 Home | Articles | Freeware | Music ravib@ravib.com -
How about starting a timer that's longer than the interval between double-clicks? So if 200 ms is the longest interval between double-clicks, start a timer with an interval of 250ms. In double-click event and in timer event, kill the timer. [insert witty comment here] bdiamond :zzz:
-
OnClick refreshes the selected item on the listViewControl. DoubleClick refreshes and then allows the user to modify it. The refreshing happens twice in this case. Sandeep Naik
From look at Spy++, when a list control single-clicked, it receives a
WM_LBUTTONDOWN
message followed by aWM_LBUTTONUP
message. When a list control double-clicked, it receives those two messages followed by aWM_LBUTTONDBLCLK
andWM_LBUTTONUP
. Can you monitor forWM_LBUTTONDOWN
andWM_LBUTTONDBLCLK
separately?
"When I was born I was so surprised that I didn't talk for a year and a half." - Gracie Allen