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
Allow the use of cookies to log in to the MQL5.com website.
Please enable the necessary setting in your browser, otherwise you will not be able to log in.
You are signed in. Two-factor authentication has been disabled. Set it up again and scan a new QR code, or continue with two-factor authentication disabled.
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