Auto hide/show the cursor tool

TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
Post Reply
ChristianH
Newbie
Newbie
Posts: 5
Joined: Tue Mar 04, 2014 12:00 am

Auto hide/show the cursor tool

Post by ChristianH » Thu Dec 18, 2014 1:48 pm

Is there a possibility to automatically hide/show a TCursorTool if the mouse is within the charting region (=where the chart itself is drawn, not the title, axis, etc.). OnMouseEnter/OnMouseLeave is a bit of a workaround, as this event occurs if entering the chart panel and not the area where the chart itself is drawn. So as there is obviously not builtin solution, is there a way to determine the charting region.

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

Re: Auto hide/show the cursor tool

Post by Yeray » Fri Dec 19, 2014 11:44 am

Hi,

Yes, we call the "charting region" ChartRect.
So you could use OnMouseMove event to toggle the visibility of the cursor tool.
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

ChristianH
Newbie
Newbie
Posts: 5
Joined: Tue Mar 04, 2014 12:00 am

Re: Auto hide/show the cursor tool

Post by ChristianH » Fri Dec 19, 2014 12:15 pm

Great, thank you. Exactly what I was looking for.
Cheers,
Christian

Post Reply