Page 1 of 1

OnMouseUp not triggered

Posted: Wed Oct 26, 2022 2:28 pm
by 16594325
Hello!

I have a OnClick event on one of my series, and when triggerd i show a popup menu. This works just fine.
The problem is that the MouseDown event is also triggerd on the TChart but the corresponding MouseUp isn't because I popup a menu inbetween!
What now happens is that the TChart still thinks that the mouse button is pressed and when I now move the mouse without pressing any buttons the chart moves around.
How can I tell the TChart to exit the "MouseDown" mode?

Best regards, Mikael

Re: OnMouseUp not triggered

Posted: Thu Oct 27, 2022 1:02 pm
by yeray
Hello Mikael,

Try using CancelMouse as explained here.