how to detect a Double Click event on a Chart ? - page 2

 
lippmaje #:

A double-click isn't recognized as such when the mouse moves between the two clicks, this should be taken into account. Same may hold for any key event between the clicks (Windows doesn't care but OP might.)

The code looks a bit easier to read with a switch.

And did you know a triple-click will be recognized by Windows when for example you are going to mark a whole paragraph? Try it in the text above.

By the way , CHARTEVENT_OBJECT_CLICK event also should be included