Hi,
I would like to prevent the OnMouseMove event triggering when the cursor is NOT over the actual chart drawing area.
Is this possible?
By the way what is the correct terminology for "the actual chart drawing area"
Tony
prevent OnMouseMove event triggering
Re: prevent OnMouseMove event triggering
Hi Tony,
I'm afraid you should test if the mouse cursor is in the target area manually:
So if you mean the rectangle formed by the left and the bottom axes, we call it "ChartRect".
I'm afraid you should test if the mouse cursor is in the target area manually:
Code: Select all
procedure TForm1.Chart1MouseMove(Sender: TObject; Shift: TShiftState; X,
Y: Integer);
var dummyPoint: TPoint;
begin
dummyPoint.X := X;
dummyPoint.Y := Y;
if PtInRect(Chart1.ChartRect, dummyPoint) then
begin
//your code
end;
end;
Best Regards,
Yeray Alonso Development & Support Steema Software Av. Montilivi 33, 17003 Girona, Catalonia (SP) | |
Please read our Bug Fixing Policy |
Re: prevent OnMouseMove event triggering
Thank you very much, that's exactly what I needed.
Please let me know if you ever get to visit the U.K.,
I would be delighted to introduce you to a quaint old English custom called "Pub Crawling".
Tony
Please let me know if you ever get to visit the U.K.,
I would be delighted to introduce you to a quaint old English custom called "Pub Crawling".
Tony
Re: prevent OnMouseMove event triggering
Hi Tony,
It's a pleasure trying to be helpful!
Thanks for the invitation! It looks culturally really interesting!
It's a pleasure trying to be helpful!
Thanks for the invitation! It looks culturally really interesting!
Best Regards,
Yeray Alonso Development & Support Steema Software Av. Montilivi 33, 17003 Girona, Catalonia (SP) | |
Please read our Bug Fixing Policy |