OnMouseUp not triggered

TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
Post Reply
Lenfors
Newbie
Newbie
Posts: 5
Joined: Fri Sep 09, 2022 12:00 am

OnMouseUp not triggered

Post by Lenfors » Wed Oct 26, 2022 2:28 pm

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

Yeray
Site Admin
Site Admin
Posts: 9613
Joined: Tue Dec 05, 2006 12:00 am
Location: Girona, Catalonia
Contact:

Re: OnMouseUp not triggered

Post by Yeray » Thu Oct 27, 2022 1:02 pm

Hello Mikael,

Try using CancelMouse as explained here.
Best Regards,
ImageYeray Alonso
Development & Support
Steema Software
Av. Montilivi 33, 17003 Girona, Catalonia (SP)
Image Image Image Image Image Image Please read our Bug Fixing Policy

Post Reply